This is where they should be as far as ember is concerned. Note this is a huge commit and we should be really careful everything continues to work properly.
17 lines
456 B
JavaScript
17 lines
456 B
JavaScript
import componentTest from "discourse/tests/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"
|
|
);
|
|
},
|
|
});
|