attempt to fix odd travis fail

This commit is contained in:
Sam 2014-05-23 15:08:27 +10:00
parent ad409638a5
commit 2a1f5876cc
2 changed files with 3 additions and 3 deletions
test/javascripts

View file

@ -72,10 +72,10 @@ test("displays a list of notifications and a 'more' link when there are notifica
equal(count(items), 3, "number of list items is correct");
equal(items.eq(0).attr("class"), "", "first (unread) item has proper class");
equal(items.eq(0).text(), "scope_1 username_1 link_1", "first item has correct content");
equal(items.eq(0).text().trim(), "scope_1 username_1 link_1", "first item has correct content");
equal(items.eq(1).attr("class"), "read", "second (read) item has proper class");
equal(items.eq(1).text(), "scope_2 username_2 link_2", "second item has correct content");
equal(items.eq(1).text().trim(), "scope_2 username_2 link_2", "second item has correct content");
var moreLink = items.eq(2).find("> a");
equal(moreLink.attr("href"), Discourse.User.current().get("path"), "'more' link points to a correct URL");

View file

@ -80,7 +80,7 @@ test("notifications dropdown", function() {
ok(exists($items), "is lazily populated after user opens it");
ok($items.first().hasClass("read"), "correctly binds items' 'read' class");
equal($items.first().find('span').html(), 'notifications.replied velesin <a href="/t/a-slug/1234/2">some title</a>', "correctly generates items' content");
equal($items.first().find('span').html().trim(), 'notifications.replied velesin <a href="/t/a-slug/1234/2">some title</a>', "correctly generates items' content");
});
});