mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:26:35 +08:00
19 lines
435 B
Plaintext
19 lines
435 B
Plaintext
|
import { acceptance } from "helpers/qunit-helpers";
|
||
|
|
||
|
acceptance("CustomHTML template", {
|
||
|
setup() {
|
||
|
Ember.TEMPLATES['top'] = Ember.HTMLBars.compile(`<span class='top-span'>TOP</span>`);
|
||
|
},
|
||
|
|
||
|
teardown() {
|
||
|
delete Ember.TEMPLATES['top'];
|
||
|
}
|
||
|
});
|
||
|
|
||
|
test("renders custom template", assert => {
|
||
|
visit("/static/faq");
|
||
|
andThen(() => {
|
||
|
assert.equal(find('span.top-span').text(), 'TOP', 'it inserted the template');
|
||
|
});
|
||
|
});
|