Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tborychowski committed Jul 20, 2023
1 parent aefa050 commit 1f2da15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/Drawer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test('Drawer', async () => {
expect(cmp.contains(document.activeElement)).toBeTruthy();

await fireEvent.click(document.body);
await waitForTimeout(400);
await waitForTimeout(500);
expect(closeMock).toHaveBeenCalled();
cmp = container.querySelector('.test-class');
expect(cmp).not.toBeInTheDocument();
Expand All @@ -53,7 +53,7 @@ test('Drawer', async () => {

const closer = container.querySelector('.test-class .drawer-header .btn-close');
await fireEvent.click(closer);
await waitForTimeout(400);
await waitForTimeout(500);
cmp = container.querySelector('.test-class');
expect(cmp).not.toBeInTheDocument();
});
2 changes: 1 addition & 1 deletion tests/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { get } from 'svelte/store';


test('util - matchMedia', () => {
expect(get(util.ANIMATION_SPEED)).toStrictEqual(200);
expect(get(util.ANIMATION_SPEED)).toStrictEqual(300);
});


Expand Down

0 comments on commit 1f2da15

Please sign in to comment.