discourse/test/javascripts/views/header_view_test.js
2014-07-30 20:09:45 -04:00

12 lines
355 B
JavaScript

moduleFor("view:header");
test("showNotifications", function() {
var controllerSpy = {
send: sinon.spy()
};
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");
});