Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisirhc committed Mar 29, 2021
1 parent f7e4d0d commit 153a116
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ export default {
raf.tick(75);
component.visible = true;

// reset original styles
// reset to in styles (in transition in progress)
assert.equal(div.style.animation, '__svelte_3809512021_1 100ms linear 0ms 1 both');
assert.equal(div.className, '__svelte_2375698960');

// 100ms after in transition started at 75
raf.tick(175);

// reset original styles after in transition is complete
assert.equal(div.style.animation, '');
assert.equal(div.className, '');
}
};

0 comments on commit 153a116

Please sign in to comment.