Skip to content

Commit 29c8fee

Browse files
josephperrottthePunderWoman
authored andcommitted
test(common): change fallback default URL in MockPlatformLocation (angular#44211)
In node@16 the URL constructor fails for for a malformed URL such as http://<empty>/. Instead http://_empty_ is used as this conveys the same information in tests but is correctly formed. PR Close angular#44211
1 parent 7b0e9b0 commit 29c8fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/testing/src/mock_platform_location.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class MockPlatformLocation implements PlatformLocation {
122122
this.baseHref = config.appBaseHref || '';
123123

124124
const parsedChanges =
125-
this.parseChanges(null, config.startUrl || 'http://<empty>/', this.baseHref);
125+
this.parseChanges(null, config.startUrl || 'http://_empty_/', this.baseHref);
126126
this.urlChanges[0] = {...parsedChanges};
127127
}
128128
}

0 commit comments

Comments
 (0)