Skip to content

Commit 7835b17

Browse files
committed
fix(supabase): wrong test
1 parent 5c8e858 commit 7835b17

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

nx.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
},
119119
"test:unit": {
120120
"inputs": ["testing", "^production"],
121+
"dependsOn": ["build"],
121122
"cache": true,
122123
"outputs": ["{projectRoot}/coverage"]
123124
},

packages/core/supabase-js/test/unit/fetch.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,13 @@ describe('fetch module', () => {
4040
})
4141

4242
describe('resolveHeadersConstructor', () => {
43-
test('should use global Headers when available', () => {
43+
test('should return native Headers', () => {
4444
const GlobalHeaders = jest.fn()
4545
;(global as any).Headers = GlobalHeaders
4646

4747
const result = resolveHeadersConstructor()
4848
expect(result).toBe(GlobalHeaders)
4949
})
50-
51-
test('should fallback to NodeFetchHeaders when global Headers is undefined', () => {
52-
const result = resolveHeadersConstructor()
53-
expect(typeof result).toBe('function')
54-
})
5550
})
5651

5752
describe('fetchWithAuth', () => {

0 commit comments

Comments
 (0)