Skip to content

Commit da98522

Browse files
committed
test: fix node type checks
1 parent 08f96e4 commit da98522

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/types/__tests__/connectionType-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ describe('types/connectionType.js', () => {
2525

2626
it('should have field `node` with provided Type', () => {
2727
const tc = new TypeComposer(prepareEdgeType(userTypeComposer));
28-
expect(tc.getFieldType('node')).toBe(userTypeComposer.getType());
28+
expect(tc.getFieldType('node')).toBeInstanceOf(GraphQLNonNull);
29+
expect(tc.getFieldType('node').ofType).toBe(userTypeComposer.getType());
2930
});
3031

3132
it('should have field `cursor` with GraphQLNonNull(GraphQLString)', () => {

0 commit comments

Comments
 (0)