Skip to content

Commit 537d0a3

Browse files
committed
test: fix test for initial panel when size is 0
1 parent 5aeea86 commit 537d0a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/Flicking.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe("Flicking", () => {
7272
);
7373

7474
expect(flicking.currentPanel).not.to.be.null;
75-
expect(flicking.currentPanel).to.equal(flicking.camera.findNearestAnchor(0).panel);
75+
expect(flicking.currentPanel).to.equal(flicking.panels[0]);
7676
});
7777

7878
[15, 30, 50, 100].forEach((width) => {

0 commit comments

Comments
 (0)