diff --git a/test/unit/Flicking.spec.ts b/test/unit/Flicking.spec.ts index 14b9c6e5cf..4414ca4218 100644 --- a/test/unit/Flicking.spec.ts +++ b/test/unit/Flicking.spec.ts @@ -72,7 +72,7 @@ describe("Flicking", () => { ); expect(flicking.currentPanel).not.to.be.null; - expect(flicking.currentPanel).to.equal(flicking.camera.findNearestAnchor(0).panel); + expect(flicking.currentPanel).to.equal(flicking.panels[0]); }); [15, 30, 50, 100].forEach((width) => {