We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff7a626 commit 5aeea86Copy full SHA for 5aeea86
test/unit/Flicking.spec.ts
@@ -205,6 +205,14 @@ describe("Flicking", () => {
205
206
expect(flicking.index).to.equal(0);
207
});
208
+
209
+ it("should initialized with panel which has index equal to defaultIndex when panels are not visible.", async () => {
210
+ const flicking = await createFlicking(El.DEFAULT_HORIZONTAL.setWidth(0), { defaultIndex: 1, autoInit: false });
211
212
+ await flicking.init();
213
214
+ expect(flicking.index).to.equal(1);
215
+ });
216
217
218
describe("horizontal", () => {
0 commit comments