mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
REFACTOR: Don't use Discourse.Capabilities
, instead use injection.
Also fix broken test. /cc @Sam
This commit is contained in:
parent
c709ea8f9e
commit
8279752d3c
3 changed files with 5 additions and 6 deletions
|
@ -50,6 +50,7 @@ test("showMoblieToggle returns true when mobile theme is enabled in site setting
|
|||
Discourse.SiteSettings.enable_mobile_theme = true;
|
||||
Discourse.Mobile.isMobileDevice = true;
|
||||
var controller = this.subject();
|
||||
controller.capabilities = { touch: true };
|
||||
equal(controller.get("showMobileToggle"), true);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue