Skip to content

Commit

Permalink
Add non-null assertion for known schema types in test
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnwalraven committed Mar 2, 2021
1 parent 9d21dd5 commit 1b34ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions federation-js/src/composition/__tests__/compose.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ describe('composeServices', () => {
}
`);

const query = schema.getQueryType();
const query = schema.getQueryType()!;

expect(getFederationMetadata(query)?.serviceName).toBeUndefined();
});
Expand Down Expand Up @@ -824,7 +824,7 @@ describe('composeServices', () => {
assertCompositionSuccess(compositionResult);
const { schema } = compositionResult;

const product = schema.getType('Product');
const product = schema.getType('Product')!;

expect(getFederationMetadata(product)?.externals).toMatchInlineSnapshot(`
Object {
Expand Down

0 comments on commit 1b34ce5

Please sign in to comment.