Skip to content

Commit

Permalink
test(slider): value is over limited
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed May 6, 2024
1 parent 0143c77 commit f2b3759
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/slider/__test__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ describe('slider', () => {
expect($slider.instance.data._value).toBe(0);

comp.setData({ value: 101 });
expect($slider.instance.data._value).toBe(0); // 100

await simulate.sleep();

expect($slider.instance.data._value).toBe(100);
});
});

0 comments on commit f2b3759

Please sign in to comment.