mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
26 lines
754 B
TypeScript
26 lines
754 B
TypeScript
import rawBRE from "@nomiclabs/buidler";
|
|
import { expect } from "chai";
|
|
import { MockProvider } from "ethereum-waffle";
|
|
import { BuidlerRuntimeEnvironment } from "@nomiclabs/buidler/types";
|
|
import { deployExampleContract } from "../helpers/contracts-helpers";
|
|
import { Example } from "../types/Example";
|
|
|
|
describe("Example test", () => {
|
|
const [wallet] = new MockProvider().getWallets();
|
|
let BRE: BuidlerRuntimeEnvironment;
|
|
|
|
before(async () => {
|
|
console.log("To execute once per 'describe'");
|
|
BRE = await rawBRE.run("set-bre");
|
|
});
|
|
|
|
it("test()", async () => {
|
|
const example = (await deployExampleContract()) as Example;
|
|
|
|
expect((await example.test()).toString()).to.equal(
|
|
"5",
|
|
"INVALID_TEST_VALUE"
|
|
);
|
|
});
|
|
});
|