Nonces.test.js 444 B

12345678910111213141516
  1. const { ethers } = require('hardhat');
  2. const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');
  3. const { shouldBehaveLikeNonces } = require('./Nonces.behavior');
  4. async function fixture() {
  5. const mock = await ethers.deployContract('$Nonces');
  6. return { mock };
  7. }
  8. describe('Nonces', function () {
  9. beforeEach(async function () {
  10. Object.assign(this, await loadFixture(fixture));
  11. });
  12. shouldBehaveLikeNonces();
  13. });