Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions osa4.md
Original file line number Diff line number Diff line change
Expand Up @@ -1129,18 +1129,18 @@ test('note without content is not added ', async () => {
important: true
}

const initialNotes = await api
const responseBeforePost = await api
.get('/api/notes')

await api
.post('/api/notes')
.send(newNote)
.expect(400)

const response = await api
const responseAfterPost = await api
.get('/api/notes')
expect(responseAfterPost.body.length).toBe(responseBeforePost.body.length);

expect(response.body.length).toBe(initialNotes.length)
})
```

Expand Down