discourse/test/javascripts/components/load-more-test.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
644 B
JavaScript
Raw Normal View History

import { configureEyeline } from "discourse/lib/eyeline";
import componentTest from "helpers/component-test";
moduleForComponent("load-more", { integration: true });
componentTest("updates once after initialization", {
template: `
{{#load-more selector=".numbers tr" action=loadMore}}
<table class="numbers"><tr></tr></table>
{{/load-more}}`,
beforeEach() {
this.set("loadMore", () => this.set("loadedMore", true));
configureEyeline({
skipUpdate: false,
rootElement: "#ember-testing",
});
},
afterEach() {
configureEyeline();
},
test(assert) {
assert.ok(this.loadedMore);
},
});