Skip to content

Commit 5bdfe61

Browse files
committed
test: remove tests that are no longer covered by assertions
1 parent be26b2f commit 5bdfe61

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/type/__tests__/definition-test.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -643,27 +643,6 @@ describe('Type System: Non-Null', () => {
643643
expectNonNull(ListOfScalarsType).to.not.throw();
644644
expectNonNull(ListOfNonNullScalarsType).to.not.throw();
645645
});
646-
647-
it('rejects a non-type as nullable type of non-null', () => {
648-
// @ts-expect-error
649-
expectNonNull(NonNullScalarType).to.throw(
650-
'Expected Scalar! to be a GraphQL nullable type.',
651-
);
652-
// @ts-expect-error
653-
expectNonNull({}).to.throw('Expected {} to be a GraphQL nullable type.');
654-
// @ts-expect-error
655-
expectNonNull(String).to.throw(
656-
'Expected [function String] to be a GraphQL nullable type.',
657-
);
658-
// @ts-expect-error (must provide type)
659-
expectNonNull(null).to.throw(
660-
'Expected null to be a GraphQL nullable type.',
661-
);
662-
// @ts-expect-error (must provide type)
663-
expectNonNull(undefined).to.throw(
664-
'Expected undefined to be a GraphQL nullable type.',
665-
);
666-
});
667646
});
668647

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

0 commit comments

Comments
 (0)