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}}
{{/load-more}}`, beforeEach() { this.set("loadMore", () => this.set("loadedMore", true)); configureEyeline({ skipUpdate: false, rootElement: "#ember-testing", }); }, afterEach() { configureEyeline(); }, test(assert) { assert.ok(this.loadedMore); }, });