Skip to content

Commit 0111018

Browse files
committed
test(driver-turso): use split/join instead of replaceAll in the uppercase-scheme pin
`@objectstack/driver-turso`'s tsconfig lib target does not carry `String.prototype.replaceAll` (TS2550) -- which is also the proof that this package's typecheck program really does reach the new `*.test.ts`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADLdAs2pVcH17h9tZKWMBg
1 parent 99e02c2 commit 0111018

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/drivers/driver-turso/src/turso-driver-uppercase-ws-scheme-timeout-refusal.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('timeout beside an UPPERCASE WebSocket url in forced remote mode — re
111111
expect(upper).not.toBeNull();
112112
expect(upper!.code).toBe(lower!.code);
113113
expect(upper!.status).toBe(lower!.status);
114-
expect(upper!.message).toBe(lower!.message.replaceAll('`wss://`', '`WSS://`'));
114+
expect(upper!.message).toBe(lower!.message.split('`wss://`').join('`WSS://`'));
115115
});
116116

117117
it('createTursoDriver() is the same constructor, and refuses the same pair', () => {

0 commit comments

Comments
 (0)