Skip to content

Commit 17d41f2

Browse files
committed
write add'l assertions for test bloominstituteoftechnology#4
1 parent 44b1abd commit 17d41f2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

api/server.test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,22 @@ describe("[POST] /api/auth/register", () => {
7979
expect(res.body.username).toBeTruthy();
8080
expect(res.body.password).toBeTruthy();
8181
expect(res.body.id).toBeTruthy();
82+
83+
res = await request(server)
84+
.post("/api/auth/register")
85+
.send({username: "juan", password: "pass"});
86+
87+
expect(res.body.username).toBeTruthy();
88+
expect(res.body.password).toBeTruthy();
89+
expect(res.body.id).toBeTruthy();
90+
91+
res = await request(server)
92+
.post("/api/auth/register")
93+
.send({username: "paco", password: "pass"});
94+
95+
expect(res.body.username).toBeTruthy();
96+
expect(res.body.password).toBeTruthy();
97+
expect(res.body.id).toBeTruthy();
8298
})
8399

84100
test('[5] responds with newly created user', async () => {

0 commit comments

Comments
 (0)