mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Replace CurrentUserMixin
with an injected currentUser
This is a lot simpler and removes the need for stubbing singletons in unit tests.
This commit is contained in:
parent
1f716f5514
commit
be9feeb918
17 changed files with 32 additions and 77 deletions
|
@ -4,5 +4,4 @@ module("DiscourseController");
|
|||
|
||||
test("includes mixins", function() {
|
||||
ok(Discourse.Presence.detect(DiscourseController.create()), "Discourse.Presence");
|
||||
ok(Discourse.HasCurrentUser.detect(DiscourseController.create()), "Discourse.HasCurrentUser");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue