Skip to content

Commit

Permalink
test: remove tests that are no longer covered by assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Jun 20, 2022
1 parent be26b2f commit 5bdfe61
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/type/__tests__/definition-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,27 +643,6 @@ describe('Type System: Non-Null', () => {
expectNonNull(ListOfScalarsType).to.not.throw();
expectNonNull(ListOfNonNullScalarsType).to.not.throw();
});

it('rejects a non-type as nullable type of non-null', () => {
// @ts-expect-error
expectNonNull(NonNullScalarType).to.throw(
'Expected Scalar! to be a GraphQL nullable type.',
);
// @ts-expect-error
expectNonNull({}).to.throw('Expected {} to be a GraphQL nullable type.');
// @ts-expect-error
expectNonNull(String).to.throw(
'Expected [function String] to be a GraphQL nullable type.',
);
// @ts-expect-error (must provide type)
expectNonNull(null).to.throw(
'Expected null to be a GraphQL nullable type.',
);
// @ts-expect-error (must provide type)
expectNonNull(undefined).to.throw(
'Expected undefined to be a GraphQL nullable type.',
);
});
});

describe('Type System: test utility methods', () => {
Expand Down

0 comments on commit 5bdfe61

Please sign in to comment.