Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itxtoledo committed Aug 25, 2024
1 parent eebc08e commit 710e25a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/xdeploy_sepolia_holesky_with_constructor.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEnvironment } from "./helpers";
import { assert, expect } from "chai";
import { NomicLabsHardhatPluginError } from "hardhat/plugins";
import { NetworkKeys } from "./networks";

describe("Plugin test xdeploy on Sepolia and Holešky with constructor", function () {
describe("Hardhat Runtime Environment (HRE) extension", function () {
Expand Down Expand Up @@ -50,7 +51,7 @@ describe("Plugin test xdeploy on Sepolia and Holešky with constructor", functio
});

it("should fail due to unsupported network argument", async function () {
this.hre.config.xdeploy.networks = ["hardhat", "WAGMI"];
this.hre.config.xdeploy.networks = ["hardhat", "WAGMI"] as NetworkKeys[];
return this.hre
.run("xdeploy")
.then(() => {
Expand Down
3 changes: 2 additions & 1 deletion test/xdeploy_with_constructor.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEnvironment } from "./helpers";
import { assert, expect } from "chai";
import { NomicLabsHardhatPluginError } from "hardhat/plugins";
import { NetworkKeys } from "./networks";

describe("Plugin test xdeploy on Hardhat with constructor", function () {
describe("Hardhat Runtime Environment (HRE) extension", function () {
Expand Down Expand Up @@ -50,7 +51,7 @@ describe("Plugin test xdeploy on Hardhat with constructor", function () {
});

it("should fail due to unsupported network argument", async function () {
this.hre.config.xdeploy.networks = ["hardhat", "WAGMI"];
this.hre.config.xdeploy.networks = ["hardhat", "WAGMI"] as NetworkKeys[];
return this.hre
.run("xdeploy")
.then(() => {
Expand Down
3 changes: 2 additions & 1 deletion test/xdeploy_without_constructor.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEnvironment } from "./helpers";
import { assert, expect } from "chai";
import { NomicLabsHardhatPluginError } from "hardhat/plugins";
import { NetworkKeys } from "./networks";

describe("Plugin test xdeploy on Hardhat without constructor", function () {
describe("Hardhat Runtime Environment (HRE) extension", function () {
Expand Down Expand Up @@ -50,7 +51,7 @@ describe("Plugin test xdeploy on Hardhat without constructor", function () {
});

it("should fail due to unsupported network argument", async function () {
this.hre.config.xdeploy.networks = ["hardhat", "WAGMI"];
this.hre.config.xdeploy.networks = ["hardhat", "WAGMI"] as NetworkKeys[];
return this.hre
.run("xdeploy")
.then(() => {
Expand Down

0 comments on commit 710e25a

Please sign in to comment.