Skip to content

Commit 2a522a2

Browse files
committed
test(index): allow initialising without token
1 parent 4cdec7e commit 2a522a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ test('client constructor has a request function property', () => {
1414
expect(client.request).toBeDefined()
1515
})
1616

17-
test('Initialising fails when missing the token', () => {
18-
expect(() => createClient()).toThrow('Token is missing')
17+
test('Initialising does not fail when missing the token', () => {
18+
expect(() => createClient()).not.toThrow()
1919
})

0 commit comments

Comments
 (0)