Skip to content

Commit 0d2735c

Browse files
committed
refactor: directly set responseInit.status by removing type assertion and TODO comment
This is no longer needed. (cherry picked from commit 03123d5)
1 parent 3b3afb1 commit 0d2735c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/angular/ssr/test/app_spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ describe('AngularServerApp', () => {
3535
constructor() {
3636
const responseInit = inject(RESPONSE_INIT);
3737
if (responseInit) {
38-
// TODO(alanagius): Remove once https://github.com/angular/angular/pull/66126 is merged and released.
39-
(responseInit as { status: number }).status = 308;
38+
responseInit.status = 308;
4039
}
4140

4241
void inject(Router).navigate([], {

0 commit comments

Comments
 (0)