* Made some inherit-only contracts internal.
* Added OwnableMock.
(cherry picked from commit 96d6103e0b)
12 lines
329 B
JavaScript
12 lines
329 B
JavaScript
const { shouldBehaveLikeOwnable } = require('./Ownable.behavior');
|
|
|
|
const Ownable = artifacts.require('OwnableMock');
|
|
|
|
contract('Ownable', function ([_, owner, ...otherAccounts]) {
|
|
beforeEach(async function () {
|
|
this.ownable = await Ownable.new({ from: owner });
|
|
});
|
|
|
|
shouldBehaveLikeOwnable(owner, otherAccounts);
|
|
});
|