Files
writer/tests/integration/users.test.ts
2019-01-01 19:05:21 +03:00

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 () => {});
});