-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0080dec
commit 80d5913
Showing
7 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
import assert from "node:assert/strict"; | ||
import { describe, it } from "mocha"; | ||
|
||
import { expect } from "chai"; | ||
|
||
import { anyUint } from "@ignored/hardhat-vnext-chai-matchers/withArgs"; | ||
import { PANIC_CODES } from "@ignored/hardhat-vnext-chai-matchers/panic"; | ||
|
||
describe("Mocha test", () => { | ||
it("should work", () => { | ||
assert.equal(1 + 1, 2); | ||
}); | ||
}); | ||
|
||
describe("Mocha test with chai-matchers", () => { | ||
it("should import variables from the chai-matchers package", () => { | ||
expect(anyUint).to.be.a("function"); | ||
expect(PANIC_CODES.ASSERTION_ERROR).to.be.a("number"); | ||
}); | ||
|
||
it("should have the hardhat additional matchers", () => { | ||
expect("0x0000010AB").to.not.hexEqual("0x0010abc"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.