Skip to content

Commit

Permalink
this is no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 28, 2020
1 parent 87dce6f commit bfeb98b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/test/server-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ const handlers = [

rest.post(`${apiUrl}/register`, async (req, res, ctx) => {
const {username, password} = req.body
if (!username) {
return res(ctx.status(400), ctx.json({message: 'A username is required'}))
}
if (!password) {
return res(ctx.status(400), ctx.json({message: 'A password is required'}))
}
const userFields = {username, password}
usersDB.create(userFields)
let user
Expand Down

0 comments on commit bfeb98b

Please sign in to comment.