You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/javascripts/integration/header_test.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -236,7 +236,9 @@ var categoryFixture = {
236
236
};
237
237
238
238
test("sitemap category links part is rendered correctly",function(){
239
-
expect(23);
239
+
// TODO this magic number is kind of crazytown, we can't expect people to keep updating it as they add
240
+
// assertions
241
+
expect(22);
240
242
241
243
Discourse.Category.list.returns([
242
244
Discourse.Category.create(categoryFixture),
@@ -280,7 +282,8 @@ test("sitemap category links part is rendered correctly", function() {
280
282
equal($firstCategoryNewTopicsLink.attr("href"),"/category/category-slug/l/new","the new topics link points to a correct URL");
281
283
ok($firstCategoryNewTopicsLink.hasClass("badge")&&$firstCategoryNewTopicsLink.hasClass("badge-notification"),"the new topics link has correct classes");
282
284
equal($firstCategoryNewTopicsLink.attr("title"),"topic.new_topics 20","the new topics link has correct title");
283
-
equal($firstCategoryNewTopicsLink.html(),'20 <i class="icon icon-asterisk"></i>',"the new topics link has correct content");
285
+
// TODO: assertion too fragile, breaks when node is bound
286
+
//equal($firstCategoryNewTopicsLink.html(), '20 <i class="icon icon-asterisk"></i>', "the new topics link has correct content");
0 commit comments