Skip to content

Commit f48986f

Browse files
committed
fixup! fix(@angular/ssr): wrap non-Error values thrown while rendering in CommonEngine
1 parent 2a97d33 commit f48986f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/angular/ssr/node/test/common-engine_spec.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ describe('CommonEngine', () => {
3434
});
3535

3636
await expectAsync(render).toBeRejectedWithError(Error, /not an Error/);
37-
await expectAsync(render).toBeRejectedWith(jasmine.objectContaining({ cause: errorResponse }));
37+
await expectAsync(render).toBeRejectedWith(
38+
jasmine.objectContaining({ cause: jasmine.is(errorResponse) }),
39+
);
3840
});
3941

4042
it('should reject with the original error when the application rejects with an Error', async () => {

0 commit comments

Comments
 (0)