mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
Revert "Rename all test files from JS -> ES6"
This reverts commit 2abe85b8344de1102c1589a9ac9421a8b296f2b5.
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("CustomHTML template", {
|
||||
beforeEach() {
|
||||
Ember.TEMPLATES["top"] = Ember.HTMLBars.compile(
|
||||
`<span class='top-span'>TOP</span>`
|
||||
);
|
||||
},
|
||||
|
||||
afterEach() {
|
||||
delete Ember.TEMPLATES["top"];
|
||||
}
|
||||
});
|
||||
|
||||
QUnit.test("renders custom template", async assert => {
|
||||
await visit("/static/faq");
|
||||
assert.equal(find("span.top-span").text(), "TOP", "it inserted the template");
|
||||
});
|
Reference in New Issue
Block a user