mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 22:02:42 +08:00
ES6: Notification controllers, added helper to create via ES6/container
This commit is contained in:
@ -11,13 +11,10 @@ var notificationFixture = {
|
||||
};
|
||||
var postUrlStub = "post-url-stub";
|
||||
|
||||
module("Discourse.NotificationController", {
|
||||
module("controller:notification", {
|
||||
setup: function() {
|
||||
sinon.stub(Discourse.Utilities, "postUrl").returns(postUrlStub);
|
||||
|
||||
controller = Discourse.NotificationController.create({
|
||||
content: notificationFixture
|
||||
});
|
||||
controller = testController('notification', notificationFixture);
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
|
Reference in New Issue
Block a user