mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 23:38:35 +08:00
12 lines
355 B
JavaScript
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");
|
|
});
|