2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-10 21:01:33 +08:00
discourse/test/javascripts/components/share-button-test.js
2020-09-04 13:42:47 +02:00

16 lines
440 B
JavaScript

import componentTest from "helpers/component-test";
moduleForComponent("share-button", { integration: true });
componentTest("share button", {
template: '{{share-button url="https://eviltrout.com"}}',
test(assert) {
assert.ok(find(`button.share`).length, "it has all the classes");
assert.ok(
find('button[data-share-url="https://eviltrout.com"]').length,
"it has the data attribute for sharing"
);
},
});