mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: We can't use Ember.HTMLBars.compile in Ember CLI
Instead we use the inline `hbs` helper. Note in the non-Ember CLI version this will not actually inline compile, but it will still work for all our tests.
This commit is contained in:
@@ -17,6 +17,14 @@ define("ember-qunit", () => {
|
||||
moduleForComponent: window.moduleForComponent,
|
||||
};
|
||||
});
|
||||
define("htmlbars-inline-precompile", () => {
|
||||
return {
|
||||
default: function (str) {
|
||||
return Ember.HTMLBars.compile(str[0]);
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
let _app;
|
||||
define("@ember/test-helpers", () => {
|
||||
let helpers = {
|
||||
|
||||
Reference in New Issue
Block a user