mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:01:10 +08:00
Rename all test files from JS -> ES6
This commit is contained in:
14
test/javascripts/components/html-safe-helper-test.js
Normal file
14
test/javascripts/components/html-safe-helper-test.js
Normal file
@ -0,0 +1,14 @@
|
||||
import componentTest from "helpers/component-test";
|
||||
moduleForComponent("html-safe-helper", { integration: true });
|
||||
|
||||
componentTest("default", {
|
||||
template: "{{html-safe string}}",
|
||||
|
||||
beforeEach() {
|
||||
this.set("string", "<p class='cookies'>biscuits</p>");
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
assert.ok(exists("p.cookies"), "it displays the string as html");
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user