mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
19 lines
604 B
TypeScript
19 lines
604 B
TypeScript
import { task } from "@nomiclabs/buidler/config";
|
|
import { eContractid } from "../../helpers/types";
|
|
import { expect } from "chai";
|
|
import { BuidlerRuntimeEnvironment } from "@nomiclabs/buidler/types";
|
|
import { Example } from "../../types/Example";
|
|
|
|
task("dev-deployment", "Deployment in buidlerevm").setAction(
|
|
async (_, localBRE) => {
|
|
const BRE: BuidlerRuntimeEnvironment = await localBRE.run("set-bre");
|
|
|
|
const example = (await BRE.run(`deploy-${eContractid.Example}`)) as Example;
|
|
|
|
expect((await example.test()).toString()).to.equal(
|
|
"5",
|
|
"INVALID_TEST_VALUE"
|
|
);
|
|
}
|
|
);
|