mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 08:31:14 +08:00
Upgrade ember-qunit
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import createStore from 'helpers/create-store';
|
||||
import AdminUser from 'admin/models/admin-user';
|
||||
import { mapRoutes } from 'discourse/mapping-router';
|
||||
|
||||
var buildPost = function(args) {
|
||||
return Discourse.Post.create(_.merge({
|
||||
@ -17,6 +18,9 @@ var buildAdminUser = function(args) {
|
||||
};
|
||||
|
||||
moduleFor("controller:flag", "controller:flag", {
|
||||
setup() {
|
||||
this.registry.register('router:main', mapRoutes());
|
||||
},
|
||||
needs: ['controller:modal']
|
||||
});
|
||||
|
||||
@ -97,4 +101,4 @@ test("canSendWarning notify_user selected", function(){
|
||||
sandbox.stub(Discourse.User, 'currentProp').withArgs('staff').returns(true);
|
||||
var flagController = this.subject({ model: buildPost() });
|
||||
canSendWarning(flagController, 'notify_user', true, 'true if current user is staff, selected is notify_user');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user