Skip to content

Commit 1d1a9d5

Browse files
author
flo
committed
fix(tests): adapted tests to fit to new sample db.json file
1 parent 04eb225 commit 1d1a9d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ describe('Test the root path', () => {
1010

1111
describe('Test the root path', () => {
1212
test('It should return a default object', async () => {
13-
const response = await request(app.server).get('/basic');
13+
const response = await request(app.server).get('/posts');
1414
expect(response.statusCode).toBe(200);
15-
expect(response.body.hello).toBe('world');
15+
console.log(JSON.stringify(response.body));
16+
expect(response.body[0].title).toBe('json-server');
1617
});
1718
});

0 commit comments

Comments
 (0)