Reorganize the repo structure (#2503)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
15
test/proxy/transparent/TransparentUpgradeableProxy.test.js
Normal file
15
test/proxy/transparent/TransparentUpgradeableProxy.test.js
Normal file
@ -0,0 +1,15 @@
|
||||
const shouldBehaveLikeUpgradeableProxy = require('../UpgradeableProxy.behaviour');
|
||||
const shouldBehaveLikeTransparentUpgradeableProxy = require('./TransparentUpgradeableProxy.behaviour');
|
||||
|
||||
const TransparentUpgradeableProxy = artifacts.require('TransparentUpgradeableProxy');
|
||||
|
||||
contract('TransparentUpgradeableProxy', function (accounts) {
|
||||
const [proxyAdminAddress, proxyAdminOwner] = accounts;
|
||||
|
||||
const createProxy = async function (logic, admin, initData, opts) {
|
||||
return TransparentUpgradeableProxy.new(logic, admin, initData, opts);
|
||||
};
|
||||
|
||||
shouldBehaveLikeUpgradeableProxy(createProxy, proxyAdminAddress, proxyAdminOwner);
|
||||
shouldBehaveLikeTransparentUpgradeableProxy(createProxy, accounts);
|
||||
});
|
||||
Reference in New Issue
Block a user