Skip to content

Commit 9836da2

Browse files
committed
test: relax test assersion
1 parent 76ccbb0 commit 9836da2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/core/animate.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('animate', () => {
105105

106106
test('ctx.realValue returns the real value when it is stopped', async () => {
107107
const ctx = animate({ scale: [0, 10] }, () => {}, {
108-
duration: 100,
108+
duration: 1000,
109109
})
110110
await raf()
111111
ctx.stop()
@@ -152,7 +152,7 @@ describe('animate', () => {
152152
test('ctx.realVelocity returns 0 after stopped', async () => {
153153
const ctx = animate({ scale: [0, 10] }, () => {}, {
154154
velocity: { scale: [100] },
155-
duration: 100,
155+
duration: 1000,
156156
})
157157
await raf()
158158
ctx.stop()

test/core/time.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { describe, expect, test } from 'vitest'
22
import { wait } from '../../src/core/time'
33

44
describe('time', () => {
5-
test('wait: 10ms', () => {
5+
test('wait: 16ms', () => {
66
const start = performance.now()
7-
return wait(10).then(() => {
7+
return wait(16).then(() => {
88
const end = performance.now()
9-
expect(end - start).toBeGreaterThan(9.8)
9+
expect(end - start).toBeGreaterThan(15.8)
1010
})
1111
})
1212

0 commit comments

Comments
 (0)