Context.test.js 489 B

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