Skip to content

Commit

Permalink
tests: add test for global fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostrider-05 committed Apr 11, 2024
1 parent 7c39868 commit bfd840c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__tests__/v2/store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ describe('Fetch store', () => {
} else return new Response(null, { status: 400 })
})

test('use global fetch', () => {
expect(new PatreonStore.Fetch('https://localhost:8000')).toBeDefined()
})

test('unset value', async () => {
expect(await store.get()).toBeUndefined()
})
Expand Down

0 comments on commit bfd840c

Please sign in to comment.