Skip to content

Commit 9fc37b6

Browse files
committed
#3 test case should be natural
1 parent a6d1295 commit 9fc37b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/__tests__/sourceNodes.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,19 @@ describe('sourceNodes', () => {
105105
readAll: true,
106106
version: 'v1',
107107
query: {
108-
limit: 2,
108+
limit: 3,
109109
},
110110
};
111111
mockResponse = {
112112
statusCode: 200,
113113
body: {
114114
contents: [{ id: '1' }, { id: '2' }, { id: '3' }],
115-
totalCount: 2,
115+
totalCount: 12,
116116
},
117117
};
118118
await sourceNodes({ actions, createNodeId, reporter }, options);
119-
expect(actions.createNode.mock.calls.length).toBe(3);
120-
expect(createNodeId.mock.calls.length).toBe(3);
119+
expect(actions.createNode.mock.calls.length).toBe(12);
120+
expect(createNodeId.mock.calls.length).toBe(12);
121121
expect(reporter.panic).not.toBeCalled();
122122
});
123123
test('sourceNodes with list, error response', async () => {

0 commit comments

Comments
 (0)