Context.test.js 564 B

12345678910111213141516171819
  1. const { accounts, contract } = require('@openzeppelin/test-environment');
  2. require('@openzeppelin/test-helpers');
  3. const ContextMock = contract.fromArtifact('ContextMock');
  4. const ContextMockCaller = contract.fromArtifact('ContextMockCaller');
  5. const { shouldBehaveLikeRegularContext } = require('./Context.behavior');
  6. describe('Context', function () {
  7. const [ sender ] = accounts;
  8. beforeEach(async function () {
  9. this.context = await ContextMock.new();
  10. this.caller = await ContextMockCaller.new();
  11. });
  12. shouldBehaveLikeRegularContext(sender);
  13. });