mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 02:16:03 +08:00
d2d0937986
Follow-up to 3650c64bca
.
28 lines
647 B
JavaScript
28 lines
647 B
JavaScript
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: Discourse.rootElement
|
|
});
|
|
},
|
|
|
|
afterEach() {
|
|
configureEyeline();
|
|
},
|
|
|
|
test(assert) {
|
|
assert.ok(this.loadedMore);
|
|
}
|
|
});
|