Skip to content

Commit f7c79c9

Browse files
author
pushpendu
committed
fix: the test message
1 parent 249559b commit f7c79c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

middlewares/validators/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const updateUser = async (req, res, next) => {
1717
.string()
1818
.optional()
1919
.regex(/^[a-z0-9-]+$/)
20-
.message("Username must be lowercase only hypen, numbers are allowed"),
20+
.message("Username must be lowercase only hypen, numbers are allowed."),
2121
first_name: joi.string().optional(),
2222
last_name: joi.string().optional(),
2323
yoe: joi.number().min(0).optional(),

test/integration/users.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ describe("Users", function () {
218218
.patch("/users/self")
219219
.set("cookie", `${cookieName}=${jwt}`)
220220
.send({
221-
username: "InvalidUser-name@",
221+
username: "InvalidUser-name",
222222
})
223223
.end((err, res) => {
224224
if (err) {

0 commit comments

Comments
 (0)