Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
b25bd020
Commit
b25bd020
authored
Nov 01, 2019
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
3fbad9ec
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
TokenVesting.test.js
test/drafts/TokenVesting.test.js
+2
-2
SimpleToken.test.js
test/examples/SimpleToken.test.js
+1
-1
Ownable.test.js
test/ownership/Ownable.test.js
+2
-2
PaymentSplitter.test.js
test/payment/PaymentSplitter.test.js
+1
-1
RefundEscrow.test.js
test/payment/escrow/RefundEscrow.test.js
+1
-1
StandaloneERC20.test.js
test/token/ERC20/StandaloneERC20.test.js
+2
-2
No files found.
test/drafts/TokenVesting.test.js
View file @
b25bd020
...
...
@@ -3,8 +3,8 @@ const { ZERO_ADDRESS } = constants;
const
{
expect
}
=
require
(
'chai'
);
const
ERC20Mintable
=
artifacts
.
require
(
'ERC20Mintable'
);
const
TokenVesting
=
artifacts
.
require
(
'TokenVesting'
);
const
ERC20Mintable
=
artifacts
.
require
(
'ERC20Mintable
Mock
'
);
const
TokenVesting
=
artifacts
.
require
(
'TokenVesting
Mock
'
);
contract
(
'TokenVesting'
,
function
([
_
,
owner
,
beneficiary
])
{
const
amount
=
new
BN
(
'1000'
);
...
...
test/examples/SimpleToken.test.js
View file @
b25bd020
...
...
@@ -3,7 +3,7 @@ const { ZERO_ADDRESS } = constants;
const
{
expect
}
=
require
(
'chai'
);
const
SimpleToken
=
artifacts
.
require
(
'SimpleToken'
);
const
SimpleToken
=
artifacts
.
require
(
'SimpleToken
Mock
'
);
contract
(
'SimpleToken'
,
function
([
_
,
creator
])
{
beforeEach
(
async
function
()
{
...
...
test/ownership/Ownable.test.js
View file @
b25bd020
const
{
shouldFail
}
=
require
(
'openzeppelin-test-helpers'
);
const
{
expectRevert
}
=
require
(
'openzeppelin-test-helpers'
);
const
{
shouldBehaveLikeOwnable
}
=
require
(
'./Ownable.behavior'
);
const
Ownable
=
artifacts
.
require
(
'OwnableMock'
);
...
...
@@ -9,7 +9,7 @@ contract('Ownable', function ([_, owner, anyone, ...otherAccounts]) {
});
it
(
'cannot be reinitialized'
,
async
function
()
{
await
shouldFail
.
reverting
(
this
.
ownable
.
initialize
(
anyone
));
await
expectRevert
.
unspecified
(
this
.
ownable
.
initialize
(
anyone
));
});
shouldBehaveLikeOwnable
(
owner
,
otherAccounts
);
...
...
test/payment/PaymentSplitter.test.js
View file @
b25bd020
...
...
@@ -3,7 +3,7 @@ const { ZERO_ADDRESS } = constants;
const
{
expect
}
=
require
(
'chai'
);
const
PaymentSplitter
=
artifacts
.
require
(
'PaymentSplitter'
);
const
PaymentSplitter
=
artifacts
.
require
(
'PaymentSplitter
Mock
'
);
contract
(
'PaymentSplitter'
,
function
([
_
,
owner
,
payee1
,
payee2
,
payee3
,
nonpayee1
,
payer1
])
{
const
amount
=
ether
(
'1'
);
...
...
test/payment/escrow/RefundEscrow.test.js
View file @
b25bd020
...
...
@@ -3,7 +3,7 @@ const { ZERO_ADDRESS } = constants;
const
{
expect
}
=
require
(
'chai'
);
const
RefundEscrow
=
artifacts
.
require
(
'RefundEscrow'
);
const
RefundEscrow
=
artifacts
.
require
(
'RefundEscrow
Mock
'
);
contract
(
'RefundEscrow'
,
function
([
_
,
primary
,
beneficiary
,
refundee1
,
refundee2
])
{
const
amount
=
ether
(
'54'
);
...
...
test/token/ERC20/StandaloneERC20.test.js
View file @
b25bd020
const
{
shouldBehaveLikeERC20Mintable
}
=
require
(
'./behaviors/ERC20Mintable.behavior'
);
const
{
shouldFail
,
BN
}
=
require
(
'openzeppelin-test-helpers'
);
const
{
expectRevert
,
BN
}
=
require
(
'openzeppelin-test-helpers'
);
const
StandaloneERC20
=
artifacts
.
require
(
'StandaloneERC20'
);
...
...
@@ -36,7 +36,7 @@ contract('StandaloneERC20', function ([
describe
(
'with all arguments'
,
function
()
{
it
(
'reverts if initial balance is zero'
,
async
function
()
{
await
shouldFail
.
reverting
(
await
expectRevert
.
unspecified
(
initializeFull
(
this
.
token
,
name
,
symbol
,
decimals
,
0
,
ZERO_ADDRESS
,
minters
,
pausers
,
deployer
)
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment