diff --git a/src/utilities/updateBrowserUrl.spec.ts b/src/utilities/updateBrowserUrl.spec.ts index 1c10b5d1..a82d7533 100644 --- a/src/utilities/updateBrowserUrl.spec.ts +++ b/src/utilities/updateBrowserUrl.spec.ts @@ -1,9 +1,6 @@ import { expect, test } from 'vitest' -import { isBrowser } from '@/utilities/isBrowser' import { updateBrowserUrl } from '@/utilities/updateBrowserUrl' test('does nothing when the window is not available', () => { - updateBrowserUrl('http://example.com2/foo') - - expect(isBrowser).toBe(false) + expect(() => updateBrowserUrl('http://example.com2/foo')).not.toThrowError() }) \ No newline at end of file