mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-26 09:08:32 -05:00
11 lines
355 B
JavaScript
11 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");
|
|
});
|