mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
DEV: Move emoji-store test to the correct dir (#17544)
This commit is contained in:
parent
057d6b406d
commit
1ccabe62d6
@ -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"]);
|
Loading…
Reference in New Issue
Block a user