mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 00:01:45 +08:00
DEV: Fix tests.
This commit is contained in:
parent
38e29d8c94
commit
147c6b1e8a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user