2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

UX: Trash icon displaying when there is no upload.

This commit is contained in:
Guo Xiang Tan 2018-11-12 15:55:56 +08:00
parent 575d6855ea
commit 10c6211cdf
4 changed files with 26 additions and 5 deletions

View file

@ -0,0 +1,14 @@
import componentTest from "helpers/component-test";
moduleForComponent("image-uploader", { integration: true });
componentTest("without image", {
template: "{{image-uploader}}",
test(assert) {
assert.equal(
this.$(".d-icon-trash-o").length,
0,
"it does not display trash icon"
);
}
});