Skip to content

Commit 4faa6b3

Browse files
committed
fix: remove autoInit at defaultIndex test
1 parent f9724ae commit 4faa6b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/unit/Flicking.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ describe("Flicking", () => {
207207
});
208208

209209
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();
210+
const flicking = await createFlicking(El.DEFAULT_HORIZONTAL.setWidth(0), { defaultIndex: 1 });
213211

214212
expect(flicking.index).to.equal(1);
215213
});

0 commit comments

Comments
 (0)