Skip to content

Commit 424fea1

Browse files
fix
1 parent 7c3a078 commit 424fea1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/tools/network.test.js.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Status: [success - 200]
1212
- accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
1313
- accept-encoding:gzip, deflate, br, zstd
1414
- connection:keep-alive
15-
- host:localhost:13810
15+
- host:localhost:<port>
1616
- sec-fetch-dest:document
1717
- sec-fetch-mode:navigate
1818
- sec-fetch-site:none

tests/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ export function stabilizeResponseOutput(text: unknown) {
158158
const dateRegEx = /.{3}, \d{2} .{3} \d{4} \d{2}:\d{2}:\d{2} [A-Z]{3}/g;
159159
output = output.replaceAll(dateRegEx, '<long date>');
160160

161-
const localhostRegEx = /http:\/\/localhost:\d{5}\//g;
162-
output = output.replaceAll(localhostRegEx, 'http://localhost:<port>/');
161+
const localhostRegEx = /localhost:\d{5}/g;
162+
output = output.replaceAll(localhostRegEx, 'localhost:<port>');
163163

164164
const userAgentRegEx = /user-agent:.*\n/g;
165165
output = output.replaceAll(userAgentRegEx, 'user-agent:<user-agent>\n');

0 commit comments

Comments
 (0)