Skip to content

Commit

Permalink
chore: Add missing coverage (#2202)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris authored Apr 26, 2024
1 parent f55b9e7 commit 501edea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/internal/__tests__/animate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ describe('animate', () => {
expect(element.style.transform).toEqual('scale(2) translate(3px, 5px)');
});

it('applies no-op transform when no input is provided', () => {
const element = document.createElement('div');
animate({
oldState: {},
elements: {
a: element,
},
});
expect(element.style.transform).toEqual('scale(1) translate(0px, 0px)');
});

it("removes transforms once it's finished", done => {
const element = document.createElement('div');
animate({
Expand Down

0 comments on commit 501edea

Please sign in to comment.