Skip to content

Commit 48b9de6

Browse files
committed
Fix v1 integration test string decoding
1 parent 5004322 commit 48b9de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/integration/routes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('API routes', () => {
3939

4040
expect(res.status).toBe(200);
4141
const buffer = new Uint8Array(await res.arrayBuffer());
42-
expect(buffer.toString()).toBe('v1-data');
42+
expect(new TextDecoder().decode(buffer)).toBe('v1-data');
4343
});
4444

4545
it('returns built file from /v2', async () => {

0 commit comments

Comments
 (0)