This commit is contained in:
2019-01-01 19:05:21 +03:00
commit 58c36bf43c
34 changed files with 14132 additions and 0 deletions

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