mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Revert "Rename all test files from JS -> ES6"
This reverts commit 2abe85b8344de1102c1589a9ac9421a8b296f2b5.
This commit is contained in:
@ -1,31 +0,0 @@
|
||||
import componentTest from "helpers/component-test";
|
||||
|
||||
moduleForComponent("d-icon", { integration: true });
|
||||
|
||||
componentTest("default", {
|
||||
template: '{{d-icon "bars"}}',
|
||||
|
||||
test(assert) {
|
||||
const html = this.$()
|
||||
.html()
|
||||
.trim();
|
||||
assert.equal(
|
||||
html,
|
||||
'<svg class="fa d-icon d-icon-bars svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#bars"></use></svg>'
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
componentTest("with replacement", {
|
||||
template: '{{d-icon "d-watching"}}',
|
||||
|
||||
test(assert) {
|
||||
const html = this.$()
|
||||
.html()
|
||||
.trim();
|
||||
assert.equal(
|
||||
html,
|
||||
'<svg class="fa d-icon d-icon-d-watching svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#discourse-bell-exclamation"></use></svg>'
|
||||
);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user