Skip to content

Commit 3222b70

Browse files
committed
chore: fix test
1 parent c29cd84 commit 3222b70

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/server.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,14 +402,10 @@ test('Returns a signed URL or the blob directly based on the request parameters'
402402
// default.
403403
const res2 = await fetch(`http://localhost:${port}/api/v1/blobs/${siteID}/site:my-store/key-1`, {
404404
headers: {
405-
accept: 'application/json;type=signed-url',
406405
authorization: `Bearer ${token}`,
407406
},
408407
})
409-
const { url: url2 } = await res2.json()
410-
const data2 = await fetch(url2)
411-
412-
expect(await data2.text()).toBe(value)
408+
expect(await res2.text()).toBe(value)
413409

414410
// When reading through a new API endpoint and requesting a signed URL, we
415411
// should get one.

0 commit comments

Comments
 (0)