Context.test.js 531 B

123456789101112131415161718
  1. const { ethers } = require('hardhat');
  2. const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');
  3. const { shouldBehaveLikeRegularContext } = require('./Context.behavior');
  4. async function fixture() {
  5. const [sender] = await ethers.getSigners();
  6. const context = await ethers.deployContract('ContextMock', []);
  7. return { sender, context };
  8. }
  9. describe('Context', function () {
  10. beforeEach(async function () {
  11. Object.assign(this, await loadFixture(fixture));
  12. });
  13. shouldBehaveLikeRegularContext();
  14. });