We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7cf14b commit 5c4d453Copy full SHA for 5c4d453
1 file changed
packages/express/test/index.test.ts
@@ -26,7 +26,7 @@ describe('createObjectQLRouter', () => {
26
27
mockObjectQL = {
28
init: jest.fn(),
29
- getConfigs: jest.fn().mockReturnValue([{ name: 'user' }])
+ getConfigs: jest.fn().mockReturnValue([{ name: 'user', fields: {} }])
30
};
31
32
// Mock getContext to return a context that returns our mockRepo
@@ -69,7 +69,7 @@ describe('createObjectQLRouter', () => {
69
it('GET /_schema should return configs', async () => {
70
const res = await request(app).get('/api/_schema');
71
expect(res.status).toBe(200);
72
- expect(res.body).toEqual([{ name: 'user' }]);
+ expect(res.body).toEqual([{ name: 'user', fields: {} }]);
73
expect(mockObjectQL.getConfigs).toHaveBeenCalled();
74
});
75
0 commit comments