DEV: Fix tests.

DEV: Fix tests.

From 147c6b1e8adbda83fc21eed95e56ff2dc2408eb4 Mon Sep 17 00:00:00 2001
From: Dan Ungureanu <dan@ungureanu.me>
Date: Fri, 23 Nov 2018 19:22:34 +0200
Subject: [PATCH] DEV: Fix tests.


diff --git a/test/javascripts/models/composer-test.js.es6 b/test/javascripts/models/composer-test.js.es6
index f170642..a06a99a 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);
 }

GitHub

1 Like