mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:52:46 +08:00
adds unit tests for Discourse.Controller
This commit is contained in:
parent
e4e8b84ca8
commit
2f9a467453
6
test/javascripts/controllers/controller_test.js
Normal file
6
test/javascripts/controllers/controller_test.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
module("Discourse.Controller");
|
||||||
|
|
||||||
|
test("includes mixins", function() {
|
||||||
|
ok(Discourse.Presence.detect(Discourse.Controller.create()), "Discourse.Presence");
|
||||||
|
ok(Discourse.HasCurrentUser.detect(Discourse.Controller.create()), "Discourse.HasCurrentUser");
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user