Skip to content

Commit b28577b

Browse files
committed
test(rsc-mf): lock runtime callback transport header semantics
1 parent 8435ed6 commit b28577b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/integration/rsc-mf/tests/index.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,14 @@ function runTests({ mode }: TestConfig) {
560560
expect(runtimeInitSource).toContain('bootstrapServerCallback');
561561
expect(runtimeInitSource).toContain('callbackBootstrapPromise');
562562
expect(runtimeInitSource).toContain("import('./registerServerCallback')");
563+
expect(runtimeInitSource).toContain('window.location.origin');
564+
expect(runtimeInitSource).toContain('window.location.pathname');
563565
expect(runtimeInitSource).toContain('callbackBootstrapPromise.catch');
564566
expect(runtimeInitSource).toContain(
565567
'callbackBootstrapPromise = undefined',
566568
);
569+
expect(runtimeInitSource).not.toContain('RSC_MF_REMOTE_PORT');
570+
expect(runtimeInitSource).not.toContain('127.0.0.1:');
567571
expect(runtimeInitSource).not.toContain(
568572
"from './registerServerCallback'",
569573
);

0 commit comments

Comments
 (0)