Skip to content

Commit

Permalink
✅ Add 1ms timeout
Browse files Browse the repository at this point in the history
Adding a short timeout when waiting for ResizeObserver in modal helper
test seems to fix failing tests
  • Loading branch information
jkaltoft committed Aug 10, 2022
1 parent eda1753 commit 1b94cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/designsystem/src/lib/testing/test-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class TestHelper {
}

public static waitForResizeObserver(): Promise<void> {
return TestHelper.waitForTimeout();
return TestHelper.waitForTimeout(1);
}

public static waitForTimeout(timeoutInMs?: number): Promise<void> {
Expand Down

0 comments on commit 1b94cab

Please sign in to comment.