DEV: Remove underscore from tags-test

This commit is contained in:
David Taylor 2018-10-04 21:14:52 +01:00
parent ab1e5732d7
commit 9554d657c5
1 changed files with 10 additions and 10 deletions

View File

@ -64,22 +64,22 @@ QUnit.test("list the tags in groups", async assert => {
4, 4,
"shows separate lists for the 3 groups and the ungrouped tags" "shows separate lists for the 3 groups and the ungrouped tags"
); );
assert.ok( assert.deepEqual(
_.isEqual( $(".tag-list h3")
_.map($(".tag-list h3"), i => { .toArray()
.map(i => {
return $(i).text(); return $(i).text();
}), }),
["Ford Cars", "Honda Cars", "Makes", "Other Tags"] ["Ford Cars", "Honda Cars", "Makes", "Other Tags"],
),
"shown in given order and with tags that are not in a group" "shown in given order and with tags that are not in a group"
); );
assert.ok( assert.deepEqual(
_.isEqual( $(".tag-list:first .discourse-tag")
_.map($(".tag-list:first .discourse-tag"), i => { .toArray()
.map(i => {
return $(i).text(); return $(i).text();
}), }),
["focus", "escort"] ["focus", "escort"],
),
"shows the tags in default sort (by count)" "shows the tags in default sort (by count)"
); );
}); });