Skip to content

Commit 4de65f2

Browse files
committed
test: update due graphql-compose v7
1 parent 030c553 commit 4de65f2

File tree

5 files changed

+594
-618
lines changed

5 files changed

+594
-618
lines changed

src/__tests__/ElasticApiParser-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,14 +484,14 @@ describe('ElasticApiParser', () => {
484484
expect(reFields.cat.type).toBeInstanceOf(ObjectTypeComposer);
485485
const tc = reFields.cat.type;
486486
expect(tc.getFieldNames()).toEqual(['field1', 'field2']);
487-
expect(tc.getField('field1').type).toEqual('String');
488-
expect(tc.getField('field2').type).toEqual('String');
487+
expect(tc.getFieldTC('field1').getTypeName()).toEqual('String');
488+
expect(tc.getFieldTC('field2').getTypeName()).toEqual('String');
489489

490490
expect(reFields.index).toBeDefined();
491491
expect(reFields.index.type).toBeInstanceOf(ObjectTypeComposer);
492492
const tc2 = reFields.index.type;
493493
expect(tc2.getFieldNames()).toEqual(['exists']);
494-
expect(tc2.getField('exists').type).toEqual('Boolean');
494+
expect(tc2.getFieldTC('exists').getTypeName()).toEqual('Boolean');
495495
});
496496
});
497497

0 commit comments

Comments
 (0)