@@ -618,6 +618,15 @@ 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 normalizedRemoteAlias = remoteAlias.trim()' ,
623+ ) ;
624+ expect ( runtimeRegisterSource ) . toContain (
625+ "!normalizedRemoteAlias || normalizedRemoteAlias.includes(':')" ,
626+ ) ;
627+ expect ( runtimeRegisterSource ) . toContain (
628+ 'Remote alias must be a non-empty identifier without ":" delimiters' ,
629+ ) ;
621630 expect ( runtimeRegisterSource ) . toContain (
622631 "if (rawActionId.startsWith('remote:'))" ,
623632 ) ;
@@ -630,7 +639,16 @@ function runTests({ mode }: TestConfig) {
630639 expect ( runtimeRegisterSource ) . toContain ( 'getNormalizedRemoteActionUrl' ) ;
631640 expect ( runtimeRegisterSource ) . toContain ( "url.search = ''" ) ;
632641 expect ( runtimeRegisterSource ) . toContain ( "url.hash = ''" ) ;
642+ expect ( runtimeRegisterSource ) . toContain (
643+ 'remoteAlias: normalizedRemoteAlias' ,
644+ ) ;
645+ expect ( runtimeRegisterSource ) . toContain (
646+ 'getHostActionId(id, normalizedRemoteAlias)' ,
647+ ) ;
633648 expect ( runtimeRegisterSource ) . toContain ( 'remoteActionUrl,' ) ;
649+ expect ( runtimeRegisterSource ) . not . toContain (
650+ 'getHostActionId(id, remoteAlias)' ,
651+ ) ;
634652 expect ( runtimeRegisterSource ) . not . toContain (
635653 'remoteActionIdToHostProxyActionId' ,
636654 ) ;
0 commit comments