Skip to content

Commit

Permalink
Add non-null assertion to fix assignment from closure
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnwalraven committed Mar 2, 2021
1 parent 68b27f3 commit 042edda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ it("doesn't throw errors when a type is unknown, but captures them instead", ()
() => (compositionResult = composeAndValidate([serviceA])),
).not.toThrow();

assertCompositionFailure(compositionResult);
assertCompositionFailure(compositionResult!);
const { errors } = compositionResult;
expect(errors).toMatchInlineSnapshot(`
Array [
Expand Down

0 comments on commit 042edda

Please sign in to comment.