Implement note creation + update tests

This commit is contained in:
2020-04-21 16:19:01 +02:00
parent ecf292bccf
commit 3ab0e395b3
2 changed files with 25 additions and 3 deletions
+9 -2
View File
@@ -25,13 +25,20 @@ client.test("Request executed successfully", function() {
%}
### Create a note
POST http://localhost:8081/notes/babar
POST http://localhost:8081/notes/tortue
Content-Type: application/json
Authorization: Bearer {{token}}
{
"tags": [
"Dev",
"Server"
]
}
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
client.assert(response.status === 201, "Response status is not 200");
});
%}