From 9554d657c53d00422a3dceb2ee30f8e9d244df2b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 4 Oct 2018 21:14:52 +0100 Subject: [PATCH] DEV: Remove underscore from tags-test --- test/javascripts/acceptance/tags-test.js.es6 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/javascripts/acceptance/tags-test.js.es6 b/test/javascripts/acceptance/tags-test.js.es6 index 1fb758ffb7d..ced627cce31 100644 --- a/test/javascripts/acceptance/tags-test.js.es6 +++ b/test/javascripts/acceptance/tags-test.js.es6 @@ -64,22 +64,22 @@ QUnit.test("list the tags in groups", async assert => { 4, "shows separate lists for the 3 groups and the ungrouped tags" ); - assert.ok( - _.isEqual( - _.map($(".tag-list h3"), i => { + assert.deepEqual( + $(".tag-list h3") + .toArray() + .map(i => { 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" ); - assert.ok( - _.isEqual( - _.map($(".tag-list:first .discourse-tag"), i => { + assert.deepEqual( + $(".tag-list:first .discourse-tag") + .toArray() + .map(i => { return $(i).text(); }), - ["focus", "escort"] - ), + ["focus", "escort"], "shows the tags in default sort (by count)" ); });