Navigation Menu

Skip to content

Commit

Permalink
Fix test to previous change regarding user data
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Feb 28, 2019
1 parent a21f502 commit 8580f48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/users.js
Expand Up @@ -40,19 +40,19 @@ describe("GET /users", () => {
request(app)
.get("/users")
.expect("Content-Type", /json/)
.expect(res => {
expect(res.body).to.be.an("array")
expect(res.body[0]).to.be.an("object")
})
.expect(200, done)
// .expect(res => {
// expect(res.body).to.be.an("array")
// expect(res.body[0]).to.be.an("object")
// })
.expect(403, done)
})

})

describe("GET /users/:id", () => {

it("should return the current user", done => {
request(app)
authAgent
.get(currentUser.uri.substring(currentUser.uri.indexOf("/users")))
.expect("Content-Type", /json/)
.expect(res => {
Expand Down

0 comments on commit 8580f48

Please sign in to comment.