Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix tests.

Dan Ungureanu147c6b1e8adb
diff --git a/test/javascripts/models/composer-test.js.es6 b/test/javascripts/models/composer-test.js.es6
index f1706421f76..a06a99ade79 100644
--- a/test/javascripts/models/composer-test.js.es6
+++ b/test/javascripts/models/composer-test.js.es6
@@ -1,4 +1,5 @@
import { currentUser } from "helpers/qunit-helpers";
+import AppEvents from "discourse/lib/app-events";
import Composer from "discourse/models/composer";
import createStore from "helpers/create-store";
@@ -7,6 +8,7 @@ QUnit.module("model:composer");
function createComposer(opts) {
opts = opts || {};
opts.user = opts.user || currentUser();
+ opts.appEvents = AppEvents.create();
return createStore().createRecord("composer", opts);
}