Skip to content

Commit 5c4d453

Browse files
committed
Update index.test.ts
1 parent c7cf14b commit 5c4d453

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/express/test/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('createObjectQLRouter', () => {
2626

2727
mockObjectQL = {
2828
init: jest.fn(),
29-
getConfigs: jest.fn().mockReturnValue([{ name: 'user' }])
29+
getConfigs: jest.fn().mockReturnValue([{ name: 'user', fields: {} }])
3030
};
3131

3232
// Mock getContext to return a context that returns our mockRepo
@@ -69,7 +69,7 @@ describe('createObjectQLRouter', () => {
6969
it('GET /_schema should return configs', async () => {
7070
const res = await request(app).get('/api/_schema');
7171
expect(res.status).toBe(200);
72-
expect(res.body).toEqual([{ name: 'user' }]);
72+
expect(res.body).toEqual([{ name: 'user', fields: {} }]);
7373
expect(mockObjectQL.getConfigs).toHaveBeenCalled();
7474
});
7575

0 commit comments

Comments
 (0)