diff --git a/app/assets/javascripts/discourse/tests/unit/lib/emoji-store-test.js b/app/assets/javascripts/discourse/tests/unit/services/emoji-store-test.js similarity index 93% rename from app/assets/javascripts/discourse/tests/unit/lib/emoji-store-test.js rename to app/assets/javascripts/discourse/tests/unit/services/emoji-store-test.js index 45801e9da40..41f10e0bb09 100644 --- a/app/assets/javascripts/discourse/tests/unit/lib/emoji-store-test.js +++ b/app/assets/javascripts/discourse/tests/unit/services/emoji-store-test.js @@ -1,7 +1,7 @@ import { discourseModule } from "discourse/tests/helpers/qunit-helpers"; import { test } from "qunit"; -discourseModule("Unit | Utility | emoji-emojiStore", function (hooks) { +discourseModule("Unit | Service | emoji-store", function (hooks) { hooks.beforeEach(function () { this.emojiStore = this.container.lookup("service:emoji-store"); this.emojiStore.reset(); @@ -29,6 +29,7 @@ discourseModule("Unit | Utility | emoji-emojiStore", function (hooks) { test("track", function (assert) { this.emojiStore.track("woman:t4"); assert.deepEqual(this.emojiStore.favorites, ["woman:t4"]); + this.emojiStore.track("otter"); this.emojiStore.track(":otter:"); assert.deepEqual(this.emojiStore.favorites, ["otter", "woman:t4"]);