discourse/test/javascripts/controllers/notifications-test.js.es6

12 lines
359 B
Plaintext
Raw Normal View History

2014-07-30 17:53:14 -04:00
moduleFor('controller:notifications', 'controller:notifications', {
needs: ['controller:header']
});
test("mixes in HasCurrentUser", function() {
2014-07-30 17:53:14 -04:00
ok(Discourse.HasCurrentUser.detect(this.subject()));
});
test("by default uses NotificationController as its item controller", function() {
2014-07-30 17:53:14 -04:00
equal(this.subject().get("itemController"), "notification");
});