Skip to content

Commit

Permalink
test(animater): improve unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
theniceangel committed Jan 1, 2021
1 parent 777b313 commit 167d050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/animater/__tests__/Animation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('Animation Class test suit', () => {
y: 10,
}

animation.isRealtimeProbeType = true
animation.options.probeType = 3

animation.move(startPoint, endPoint, 0, 'easing')
expect(translater.translate).toBeCalledTimes(1)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/animater/__tests__/Transition.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('Transition Class test suit', () => {
x: 10,
y: 10,
}
transition.isRealtimeProbeType = true
transition.options.probeType = 3
transition.move(startPoint, endPoint, 0, 'cubic-bezier(0.23, 1, 0.32, 1)')
expect(onEnd).toHaveBeenCalled()
transition.destroy()
Expand Down

0 comments on commit 167d050

Please sign in to comment.