Update docs
This commit is contained in:
17
test/utils/Context.test.js
Normal file
17
test/utils/Context.test.js
Normal file
@ -0,0 +1,17 @@
|
||||
require('@openzeppelin/test-helpers');
|
||||
|
||||
const ContextMock = artifacts.require('ContextMock');
|
||||
const ContextMockCaller = artifacts.require('ContextMockCaller');
|
||||
|
||||
const { shouldBehaveLikeRegularContext } = require('./Context.behavior');
|
||||
|
||||
contract('Context', function (accounts) {
|
||||
const [sender] = accounts;
|
||||
|
||||
beforeEach(async function () {
|
||||
this.context = await ContextMock.new();
|
||||
this.caller = await ContextMockCaller.new();
|
||||
});
|
||||
|
||||
shouldBehaveLikeRegularContext(sender);
|
||||
});
|
||||
Reference in New Issue
Block a user