@@ -618,27 +618,11 @@ function runTests({ mode }: TestConfig) {
618618 expect ( runtimeRegisterSource ) . not . toContain ( '127.0.0.1:' ) ;
619619 expect ( runtimeRegisterSource ) . not . toContain ( 'window.location' ) ;
620620 expect ( runtimeRegisterSource ) . toContain ( "remoteAlias = 'rscRemote'" ) ;
621- expect ( runtimeRegisterSource ) . toContain (
622- 'const ALIAS_TOKEN_PATTERN = /^[A-Za-z0-9_.-]+$/' ,
623- ) ;
624- expect ( runtimeRegisterSource ) . toContain (
625- 'const normalizedRemoteAlias = remoteAlias.trim()' ,
626- ) ;
627- expect ( runtimeRegisterSource ) . toContain (
628- "normalizedRemoteAlias.includes(':')" ,
629- ) ;
630- expect ( runtimeRegisterSource ) . toContain (
631- '!ALIAS_TOKEN_PATTERN.test(normalizedRemoteAlias)' ,
632- ) ;
633621 expect ( runtimeRegisterSource ) . toContain (
634622 'Remote alias must be a non-empty token (letters, numbers, "-", "_", ".") without ":" delimiters' ,
635623 ) ;
636- expect ( runtimeRegisterSource ) . toContain (
637- "if (rawActionId.startsWith('remote:'))" ,
638- ) ;
639- expect ( runtimeRegisterSource ) . toContain (
640- 'return `remote:${remoteAlias}:${rawActionId}`' ,
641- ) ;
624+ expect ( runtimeRegisterSource ) . toContain ( "startsWith('remote:')" ) ;
625+ expect ( runtimeRegisterSource ) . toContain ( 'return `remote:${remoteAlias}:' ) ;
642626 expect ( runtimeRegisterSource ) . toContain ( "'x-rsc-action': hostActionId" ) ;
643627 expect ( runtimeRegisterSource ) . toContain ( "method: 'POST'" ) ;
644628 expect ( runtimeRegisterSource ) . toContain ( "Accept: 'text/x-component'" ) ;
0 commit comments