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