Skip to content

Commit

Permalink
Remove old setting from tests
Browse files Browse the repository at this point in the history
withCredentials has be removed in previous versions and should not be included in the tests anymore.
  • Loading branch information
Acconut committed Jul 6, 2023
1 parent 8d7d709 commit 623ec81
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/spec/test-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ describe('tus', () => {
nonlatin: 'słońce',
number: 100,
},
withCredentials: true,
onProgress() {},
onUploadUrlAvailable: waitableFunction('onUploadUrlAvailable'),
onSuccess: waitableFunction('onSuccess'),
Expand All @@ -59,7 +58,6 @@ describe('tus', () => {
expect(req.requestHeaders.Custom).toBe('blargh')
expect(req.requestHeaders['Tus-Resumable']).toBe('1.0.0')
expect(req.requestHeaders['Upload-Length']).toBe(11)
// if (isBrowser) expect(req.withCredentials).toBe(true);
expect(req.requestHeaders['Upload-Metadata']).toBe(
'foo aGVsbG8=,bar d29ybGQ=,nonlatin c8WCb8WEY2U=,number MTAw'
)
Expand All @@ -82,7 +80,6 @@ describe('tus', () => {
expect(req.requestHeaders['Upload-Offset']).toBe(0)
expect(req.requestHeaders['Content-Type']).toBe('application/offset+octet-stream')
expect(req.body.size).toBe(11)
// if (isBrowser) expect(req.withCredentials).toBe(true);

req.respondWith({
status: 204,
Expand Down

0 comments on commit 623ec81

Please sign in to comment.