Revert font awesome 5 changes

We are still pushing ahead on this 100% just need a bit longer to prepare
all plugins
This commit is contained in:
Sam
2018-11-08 16:12:18 +11:00
parent 0232a3b5e5
commit 42572ff138
131 changed files with 2251 additions and 6736 deletions

View File

@ -1,36 +0,0 @@
import { moduleForWidget, widgetTest } from "helpers/widget-test";
moduleForWidget("avatar-flair");
widgetTest("avatar flair with an icon", {
template: '{{mount-widget widget="avatar-flair" args=args}}',
beforeEach() {
this.set("args", {
primary_group_flair_url: "fa-bars",
primary_group_flair_bg_color: "CC0000",
primary_group_flair_color: "FFFFFF"
});
},
test(assert) {
assert.ok(this.$(".avatar-flair").length, "it has the tag");
assert.ok(this.$("svg.d-icon-bars").length, "it has the svg icon");
assert.equal(
this.$(".avatar-flair").attr("style"),
"background-color: #CC0000; color: #FFFFFF; ",
"it has styles"
);
}
});
widgetTest("avatar flair with an image", {
template: '{{mount-widget widget="avatar-flair" args=args}}',
beforeEach() {
this.set("args", {
primary_group_flair_url: "/images/avatar.png"
});
},
test(assert) {
assert.ok(this.$(".avatar-flair").length, "it has the tag");
assert.ok(this.$("svg").length === 0, "it does not have an svg icon");
}
});