-
Notifications
You must be signed in to change notification settings - Fork 47
/
.spec.template.ts
50 lines (40 loc) · 1.09 KB
/
.spec.template.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import "module-alias/register";
import { BigNumber } from "ethers/utils";
import { ethers } from "hardhat";
import { Address, Account } from "@utils/types";
import {} from "@utils/constants";
import {} from "@utils/contracts";
import DeployHelper from "@utils/deploys";
import {
addSnapshotBeforeRestoreAfterEach,
ether,
getAccounts,
getSystemFixture,
getWaffleExpect,
} from "@utils/index";
import { SystemFixture } from "@utils/fixtures";
import { ContractTransaction } from "ethers";
const expect = getWaffleExpect();
describe("SPEC TITLE", () => {
let owner: Account;
let deployer: DeployHelper;
let setup: SystemFixture;
before(async () => {
[
owner,
] = await getAccounts();
deployer = new DeployHelper(owner.wallet);
setup = getSystemFixture(owner.address);
await setup.initialize();
});
addSnapshotBeforeRestoreAfterEach();
describe("#FUNCTION_NAME", async () => {
let subjectArgument: Address;
beforeEach(async () => {
});
async function subject(): Promise<any> {
}
it("should do something", async () => {
});
});
});