mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
31 lines
655 B
TypeScript
31 lines
655 B
TypeScript
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 () => {});
|
|
});
|