mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
attempt to fix odd travis fail
This commit is contained in:
parent
ad409638a5
commit
2a1f5876cc
2 changed files with 3 additions and 3 deletions
test/javascripts
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue