Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apps/tests/user.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ describe("Signup endpoints", () => {
email: USER_NAME,
password: "password"
})
expect(false, "Control shouldnt reach here")
expect(false, "Control shouldn't reach here")
} catch(e) {

}
})

it("Is able to sign up if body is incorrect", async () => {
it("Is able to sign up if body is correct", async () => {
try {
const res = await axios.post(`${BACKEND_URL}/user/signup`, {
username: USER_NAME,
Expand All @@ -40,13 +40,13 @@ describe("Signin endpoints", () => {
email: USER_NAME,
password: "password"
})
expect(false, "Control shouldnt reach here")
expect(false, "Control shouldn't reach here")
} catch(e) {
console.log(e);
}
})

it("Is able to sign in if body is incorrect", async () => {
it("Is able to sign in if body is correct", async () => {
try {
const res = await axios.post(`${BACKEND_URL}/user/signin`, {
username: USER_NAME,
Expand All @@ -58,4 +58,4 @@ describe("Signin endpoints", () => {
console.log(e);
}
})
})
})