DEV: Move emoji-store test to the correct dir (#17544)

This commit is contained in:
Jarek Radosz 2022-07-17 23:44:10 +02:00 committed by GitHub
parent 057d6b406d
commit 1ccabe62d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import { discourseModule } from "discourse/tests/helpers/qunit-helpers"; import { discourseModule } from "discourse/tests/helpers/qunit-helpers";
import { test } from "qunit"; import { test } from "qunit";
discourseModule("Unit | Utility | emoji-emojiStore", function (hooks) { discourseModule("Unit | Service | emoji-store", function (hooks) {
hooks.beforeEach(function () { hooks.beforeEach(function () {
this.emojiStore = this.container.lookup("service:emoji-store"); this.emojiStore = this.container.lookup("service:emoji-store");
this.emojiStore.reset(); this.emojiStore.reset();
@ -29,6 +29,7 @@ discourseModule("Unit | Utility | emoji-emojiStore", function (hooks) {
test("track", function (assert) { test("track", function (assert) {
this.emojiStore.track("woman:t4"); this.emojiStore.track("woman:t4");
assert.deepEqual(this.emojiStore.favorites, ["woman:t4"]); assert.deepEqual(this.emojiStore.favorites, ["woman:t4"]);
this.emojiStore.track("otter"); this.emojiStore.track("otter");
this.emojiStore.track(":otter:"); this.emojiStore.track(":otter:");
assert.deepEqual(this.emojiStore.favorites, ["otter", "woman:t4"]); assert.deepEqual(this.emojiStore.favorites, ["otter", "woman:t4"]);