Skip to content

Commit 8e1b005

Browse files
committed
Remove async from describes
1 parent 6ad8d88 commit 8e1b005

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

packages/hardhat-chai-matchers/test/bigNumber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ describe("BigNumber matchers", function () {
860860
});
861861
});
862862

863-
describe("deep equal", async function () {
863+
describe("deep equal", function () {
864864
checkAll(1, 1, (a, b) => {
865865
it(`should work with ${typestr(a)} and ${typestr(b)}`, function () {
866866
// successful assertions

packages/hardhat-chai-matchers/test/events.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ describe(".to.emit (contract events)", () => {
405405
);
406406
});
407407

408-
describe("nested predicate", async function () {
408+
describe("nested predicate", function () {
409409
it("Should succeed when predicate passes", async function () {
410410
await expect(contract.emitUintArray(1, 2))
411411
.to.emit(contract, "WithUintArray")
@@ -630,7 +630,7 @@ describe(".to.emit (contract events)", () => {
630630
"WithStringArg"
631631
);
632632
});
633-
describe("When detecting two events from one call (chaining)", async function () {
633+
describe("When detecting two events from one call (chaining)", function () {
634634
it("Should succeed when both expected events are indeed emitted", async function () {
635635
await expect(contract.emitUintAndString(1, "a string"))
636636
.to.emit(contract, "WithUintArg")
@@ -663,7 +663,7 @@ describe(".to.emit (contract events)", () => {
663663
);
664664
});
665665
});
666-
describe("When specifying .withArgs()", async function () {
666+
describe("When specifying .withArgs()", function () {
667667
it("Should pass when expecting the correct args from the first event", async function () {
668668
await expect(contract.emitUintAndString(1, "a string"))
669669
.to.emit(contract, "WithUintArg")

packages/hardhat-chai-matchers/test/reverted/revertedWithCustomError.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ describe("INTEGRATION: Reverted with custom error", function () {
223223
});
224224

225225
describe("with args", function () {
226-
describe("one argument", async function () {
226+
describe("one argument", function () {
227227
it("Should match correct argument", async function () {
228228
await expect(matchers.revertWithCustomErrorWithUint(1))
229229
.to.be.revertedWithCustomError(matchers, "CustomErrorWithUint")
@@ -348,7 +348,7 @@ describe("INTEGRATION: Reverted with custom error", function () {
348348
});
349349
});
350350

351-
describe("array of different lengths", async function () {
351+
describe("array of different lengths", function () {
352352
it("Should fail if the expected array is bigger", async function () {
353353
await expect(
354354
expect(matchers.revertWithCustomErrorWithPair(1, 2))

packages/hardhat-solpp/test/tests.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export async function expectErrorAsync(
1919
}
2020
}
2121

22-
describe("Solpp plugin", async function () {
23-
describe("js-config-project", async function () {
22+
describe("Solpp plugin", function () {
23+
describe("js-config-project", function () {
2424
useEnvironment("js-config-project");
2525

2626
it("should evaluate symbols as javascript functions", async function () {
@@ -36,7 +36,7 @@ describe("Solpp plugin", async function () {
3636
});
3737
});
3838

39-
describe("json-config-project", async function () {
39+
describe("json-config-project", function () {
4040
useEnvironment("json-config-project");
4141

4242
it("should load definitions from json", async function () {
@@ -54,7 +54,7 @@ describe("Solpp plugin", async function () {
5454
});
5555
});
5656

57-
describe("hardhat-project", async function () {
57+
describe("hardhat-project", function () {
5858
useEnvironment("hardhat-project");
5959

6060
it("should create processed contracts in the cache directory", async function () {
@@ -102,7 +102,7 @@ describe("Solpp plugin", async function () {
102102
});
103103

104104
// This test skipped because solpp won't fail if a contract has an non-defined symbol.
105-
describe.skip("fail-project", async function () {
105+
describe.skip("fail-project", function () {
106106
useEnvironment("fail-project");
107107

108108
it("should fail when symbol does not exist", async function () {

packages/hardhat-vyper/test/tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe("Vyper plugin", function () {
6868
});
6969
});
7070

71-
describe("Mixed language", async function () {
71+
describe("Mixed language", function () {
7272
useFixtureProject("mixed-language");
7373
useEnvironment();
7474

0 commit comments

Comments
 (0)