Skip to content

Commit

Permalink
Update spring.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed May 15, 2024
1 parent 0b42b73 commit 69a159b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/core/src/test/spring.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,17 @@ test('spring should not end too early', () => {
}),
).toBeCloseTo(1);
});

test('from / to', () => {
expect(
spring({
fps: 30,
frame: 10,
from: 0,
to: 200,
config: {
damping: 200,
},
}),
).toBeCloseTo(169.082);
});

0 comments on commit 69a159b

Please sign in to comment.