1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-08 23:10:05 +00:00

test(user): added specs for admin action to create user

This commit is contained in:
Saad Jutt
2021-11-02 20:44:16 +05:00
parent b48e674468
commit 60f2b34567
6 changed files with 172 additions and 17 deletions

View File

@@ -16,8 +16,8 @@ userRouter.post('/', async (req, res) => {
isadmin: savedUser.isadmin,
isactive: savedUser.isactive
})
} catch (err) {
res.status(400).send(err)
} catch (err: any) {
res.status(403).send(err.toString())
}
})