fix(tests): fix localhost test

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2701>
environments/review-docs-v2-ov-8q6uyo/deployments/19325
Kasper Seweryn 2024-02-21 16:03:18 +01:00
rodzic 30540ec186
commit d2ca28ca47
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -7,7 +7,6 @@ import { findDefaultInstanceUrl, TAURI_DEFAULT_INSTANCE_URL } from '~/store/inst
afterEach(() => { afterEach(() => {
vi.unstubAllEnvs() vi.unstubAllEnvs()
vi.unstubAllGlobals()
}) })
describe('findDefaultInstanceUrl', () => { describe('findDefaultInstanceUrl', () => {
@ -22,7 +21,6 @@ describe('findDefaultInstanceUrl', () => {
}) })
test('location origin', () => { test('location origin', () => {
vi.stubGlobal('location', new URL('https://example.com')) expect(findDefaultInstanceUrl()).toBe('http://localhost:3000/')
expect(findDefaultInstanceUrl()).toBe('https://example.com/')
}) })
}) })