mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-21 21:12:39 -05:00
15 lines
385 B
JavaScript
15 lines
385 B
JavaScript
|
module("Discourse.HeaderView");
|
||
|
|
||
|
test("showNotifications", function() {
|
||
|
var controllerSpy = {
|
||
|
send: sinon.spy()
|
||
|
};
|
||
|
var view = Discourse.HeaderView.create({
|
||
|
controller: controllerSpy
|
||
|
});
|
||
|
|
||
|
view.showNotifications();
|
||
|
|
||
|
ok(controllerSpy.send.calledWith("showNotifications", view), "sends showNotifications message to the controller, passing header view as a param");
|
||
|
});
|