Skip to content

Commit

Permalink
test: fix test for initial panel when size is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
malangfox committed Dec 6, 2024
1 parent 5aeea86 commit 537d0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/Flicking.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 537d0a3

Please sign in to comment.