Skip to content

Commit 28670ef

Browse files
committed
🔧 chore: improve return web api\'s File test
1 parent 1917808 commit 28670ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎test/path/path.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ describe('Path', () => {
316316

317317
expect(res.headers.get('content-type')).toBe('text/plain;charset=utf-8')
318318
expect(await res.text()).toBe('Hello')
319+
expect(res.status).toBe(200)
320+
expect(res.headers.get('accept-ranges')).toBe('bytes')
321+
expect(res.headers.get('content-range')).toBe('bytes 0-4/5')
322+
319323
})
320324

321325
it('handle *', async () => {

0 commit comments

Comments
 (0)