Skip to content

Commit 167d050

Browse files
committed
test(animater): improve unit test coverage
1 parent 777b313 commit 167d050

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/animater/__tests__/Animation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('Animation Class test suit', () => {
6363
y: 10,
6464
}
6565

66-
animation.isRealtimeProbeType = true
66+
animation.options.probeType = 3
6767

6868
animation.move(startPoint, endPoint, 0, 'easing')
6969
expect(translater.translate).toBeCalledTimes(1)

packages/core/src/animater/__tests__/Transition.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('Transition Class test suit', () => {
9393
x: 10,
9494
y: 10,
9595
}
96-
transition.isRealtimeProbeType = true
96+
transition.options.probeType = 3
9797
transition.move(startPoint, endPoint, 0, 'cubic-bezier(0.23, 1, 0.32, 1)')
9898
expect(onEnd).toHaveBeenCalled()
9999
transition.destroy()

0 commit comments

Comments
 (0)