Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
sspenst committed Mar 19, 2024
1 parent e9d2ea8 commit 7df38c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/pages/api/level/level.image.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ describe('pages/api/level/image/[id]', () => {
const res = await fetch();

expect(res.status).toBe(200);
const body = await res.body.read();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const body = await (res as any).body.read();

// expect header to be image
expect(res.headers.get('content-type')).toBe('image/png');
Expand All @@ -79,7 +80,8 @@ describe('pages/api/level/image/[id]', () => {
const res = await fetch();

expect(res.status).toBe(200);
const body = await res.body.read();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const body = await (res as any).body.read();

// expect header to be image
expect(res.headers.get('content-type')).toBe('image/png');
Expand Down

0 comments on commit 7df38c2

Please sign in to comment.