NoncesKeyed.test.js 516 B

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