Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrSaber committed Sep 12, 2024
1 parent 5d68017 commit 64c20b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/utils/polyfills.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { browser } from '$app/environment';
import serverAssert from 'node:assert/strict';

export const assert = browser ? console.assert : serverAssert;
export const assert = globalThis.window != null ? console.assert : serverAssert;

0 comments on commit 64c20b4

Please sign in to comment.