mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
init
This commit is contained in:
30
tests/integration/users.test.ts
Normal file
30
tests/integration/users.test.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { connect } from "config/database";
|
||||
import { getConnection } from "typeorm";
|
||||
|
||||
import { ISeed, seedDB } from "./util";
|
||||
|
||||
let seed: ISeed;
|
||||
|
||||
describe("users", () => {
|
||||
before(async () => {
|
||||
await connect();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await getConnection().close();
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
seed = await seedDB();
|
||||
});
|
||||
|
||||
it("should get user", async () => {});
|
||||
|
||||
it("should login user", async () => {});
|
||||
|
||||
it("should not login user with wrong password", async () => {});
|
||||
|
||||
it("should signup user", async () => {});
|
||||
|
||||
it("should not signup user with duplicate username", async () => {});
|
||||
});
|
||||
Reference in New Issue
Block a user