mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
correct tests
This commit is contained in:
@ -16,8 +16,8 @@ test("Regular categoryBadge", function() {
|
||||
}),
|
||||
tag = parseHTML(categoryBadgeHTML(category))[0];
|
||||
|
||||
equal(tag.name, 'span', 'it creates a `span` wrapper tag');
|
||||
equal(tag.attributes['class'], 'badge-wrapper', 'it has the correct class');
|
||||
equal(tag.name, 'a', 'it creates a `a` wrapper tag');
|
||||
equal(tag.attributes['class'].trim(), 'badge-wrapper', 'it has the correct class');
|
||||
|
||||
var label = tag.children[1];
|
||||
equal(label.attributes.title, 'cool description', 'it has the correct title');
|
||||
|
Reference in New Issue
Block a user