mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Don't try injecting into the Resolver. Use options instead.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { buildResolver } from 'discourse-common/resolver';
|
||||
import { setResolverOption, buildResolver } from 'discourse-common/resolver';
|
||||
|
||||
let originalTemplates;
|
||||
let resolver;
|
||||
@ -92,7 +92,7 @@ test("resolves mobile templates to 'mobile/' namespace", function() {
|
||||
"baz"
|
||||
]);
|
||||
|
||||
resolver.mobileView = true;
|
||||
setResolverOption('mobileView', true);
|
||||
|
||||
lookupTemplate("template:foo", "mobile/foo", "finding mobile version even if normal one is not present");
|
||||
lookupTemplate("template:bar", "mobile/bar", "preferring mobile version when both mobile and normal versions are present");
|
||||
|
Reference in New Issue
Block a user