mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 05:01:42 +08:00
ES6: Convert all test files over
This commit is contained in:
11
test/javascripts/views/header-view-test.js.es6
Normal file
11
test/javascripts/views/header-view-test.js.es6
Normal file
@ -0,0 +1,11 @@
|
||||
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");
|
||||
});
|
Reference in New Issue
Block a user