Skip to content

Commit afb8bea

Browse files
committed
reverting to fix prettier
1 parent 8c896cd commit afb8bea

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

packages/api/test/e2e/auth.test.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,3 @@ afterEach(async () => {
1414
afterAll(async () => {
1515
await mongoose.connection.close();
1616
});
17-
18-
describe("Tests for password encryption and validation", () => {
19-
it("should not store raw passwords in the database", async () => {
20-
const password = "testcase1";
21-
const userInfo = {
22-
23-
password,
24-
};
25-
await request(app).post("/auth/signup").send(userInfo).expect(201);
26-
27-
const user = await User.findOne({ email: userInfo.email });
28-
expect(user).not.toBeNull();
29-
expect(user?.password).toBeDefined();
30-
expect(user?.password).not.toEqual(password);
31-
expect(user?.verifyPassword(password)).resolves.toBeTruthy();
32-
});
33-
});

0 commit comments

Comments
 (0)