discourse/test/javascripts/views/header-view-test.js.es6

12 lines
355 B
Text
Raw Normal View History

2014-07-30 18:56:01 -04:00
moduleFor("view:header");
test("showNotifications", function() {
var controllerSpy = {
send: sinon.spy()
};
2014-07-30 18:56:01 -04:00
var view = this.subject({controller: controllerSpy});
view.showNotifications();
ok(controllerSpy.send.calledWith("showNotifications", view), "sends showNotifications message to the controller, passing header view as a param");
});