We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04eb225 commit 1d1a9d5Copy full SHA for 1d1a9d5
tests/test.js
@@ -10,8 +10,9 @@ describe('Test the root path', () => {
10
11
describe('Test the root path', () => {
12
test('It should return a default object', async () => {
13
- const response = await request(app.server).get('/basic');
+ const response = await request(app.server).get('/posts');
14
expect(response.statusCode).toBe(200);
15
- expect(response.body.hello).toBe('world');
+ console.log(JSON.stringify(response.body));
16
+ expect(response.body[0].title).toBe('json-server');
17
});
18
0 commit comments