discourse/test/javascripts/components/share-button-test.js.es6

16 lines
442 B
Plaintext
Raw Normal View History

2018-06-15 11:03:24 -04:00
import componentTest from "helpers/component-test";
moduleForComponent("share-button", { integration: true });
2017-08-01 16:06:51 -04:00
2018-06-15 11:03:24 -04:00
componentTest("share button", {
2017-08-01 16:06:51 -04:00
template: '{{share-button url="https://eviltrout.com"}}',
test(assert) {
2018-06-15 11:03:24 -04:00
assert.ok(this.$(`button.share`).length, "it has all the classes");
2017-08-01 16:06:51 -04:00
assert.ok(
this.$(`button[data-share-url="https://eviltrout.com"]`).length,
2018-06-15 11:03:24 -04:00
"it has the data attribute for sharing"
2017-08-01 16:06:51 -04:00
);
}
});