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
4fbd44fd
Commit
4fbd44fd
authored
Jan 17, 2018
by
AugustoL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganize tests and add library folder
parent
b0522b9c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
15 deletions
+15
-15
SimpleToken.test.js
test/examples/SimpleToken.test.js
+3
-3
ECRecovery.test.js
test/library/ECRecovery.test.js
+3
-3
Math.test.js
test/library/Math.test.js
+1
-1
MerkleProof.test.js
test/library/MerkleProof.test.js
+2
-2
DetailedERC20.test.js
test/token/erc/DetailedERC20.test.js
+1
-1
ERC827Token.js
test/token/erc/ERC827Token.js
+3
-3
SafeERC20.test.js
test/token/erc/SafeERC20.test.js
+2
-2
No files found.
test/SimpleToken.test.js
→
test/
examples/
SimpleToken.test.js
View file @
4fbd44fd
import
decodeLogs
from
'./helpers/decodeLogs'
;
const
SimpleToken
=
artifacts
.
require
(
'
examples/
SimpleToken.sol'
);
import
decodeLogs
from
'.
.
/helpers/decodeLogs'
;
const
SimpleToken
=
artifacts
.
require
(
'SimpleToken.sol'
);
contract
(
'SimpleToken'
,
accounts
=>
{
let
token
;
...
...
@@ -23,7 +23,7 @@ contract('SimpleToken', accounts => {
const
decimals
=
await
token
.
decimals
();
assert
(
decimals
.
eq
(
18
));
});
it
(
'assigns the initial total supply to the creator'
,
async
function
()
{
const
totalSupply
=
await
token
.
totalSupply
();
const
creatorBalance
=
await
token
.
balanceOf
(
creator
);
...
...
test/ECRecovery.test.js
→
test/
library/
ECRecovery.test.js
View file @
4fbd44fd
var
ECRecoveryMock
=
artifacts
.
require
(
'
../contracts/mocks/
ECRecoveryMock.sol'
);
var
ECRecoveryLib
=
artifacts
.
require
(
'
../contracts/
ECRecovery.sol'
);
var
ECRecoveryMock
=
artifacts
.
require
(
'ECRecoveryMock.sol'
);
var
ECRecoveryLib
=
artifacts
.
require
(
'ECRecovery.sol'
);
var
hashMessage
=
require
(
'./helpers/hashMessage.js'
);
var
hashMessage
=
require
(
'.
.
/helpers/hashMessage.js'
);
contract
(
'ECRecovery'
,
function
(
accounts
)
{
let
ecrecovery
;
...
...
test/Math.test.js
→
test/
library/
Math.test.js
View file @
4fbd44fd
var
MathMock
=
artifacts
.
require
(
'./mocks/MathMock.sol'
);
var
MathMock
=
artifacts
.
require
(
'.
.
/mocks/MathMock.sol'
);
contract
(
'Math'
,
function
(
accounts
)
{
let
math
;
...
...
test/MerkleProof.test.js
→
test/
library/
MerkleProof.test.js
View file @
4fbd44fd
import
MerkleTree
from
'./helpers/merkleTree.js'
;
import
MerkleTree
from
'.
.
/helpers/merkleTree.js'
;
import
{
sha3
,
bufferToHex
}
from
'ethereumjs-util'
;
var
MerkleProof
=
artifacts
.
require
(
'
./
MerkleProof.sol'
);
var
MerkleProof
=
artifacts
.
require
(
'MerkleProof.sol'
);
contract
(
'MerkleProof'
,
function
(
accounts
)
{
let
merkleProof
;
...
...
test/token/DetailedERC20.test.js
→
test/token/
erc/
DetailedERC20.test.js
View file @
4fbd44fd
...
...
@@ -5,7 +5,7 @@ require('chai')
.
use
(
require
(
'chai-bignumber'
)(
BigNumber
))
.
should
();
const
DetailedERC20Mock
=
artifacts
.
require
(
'
mocks/
DetailedERC20Mock.sol'
);
const
DetailedERC20Mock
=
artifacts
.
require
(
'DetailedERC20Mock.sol'
);
contract
(
'DetailedERC20'
,
accounts
=>
{
let
detailedERC20
=
null
;
...
...
test/ERC827Token.js
→
test/
token/erc/
ERC827Token.js
View file @
4fbd44fd
import
EVMRevert
from
'./helpers/EVMRevert'
;
var
Message
=
artifacts
.
require
(
'
./mock/
MessageHelper.sol'
);
var
ERC827TokenMock
=
artifacts
.
require
(
'
./mock/
ERC827TokenMock.sol'
);
import
EVMRevert
from
'.
./..
/helpers/EVMRevert'
;
var
Message
=
artifacts
.
require
(
'MessageHelper.sol'
);
var
ERC827TokenMock
=
artifacts
.
require
(
'ERC827TokenMock.sol'
);
var
BigNumber
=
web3
.
BigNumber
;
var
_
=
require
(
'lodash'
);
...
...
test/token/SafeERC20.test.js
→
test/token/
erc/
SafeERC20.test.js
View file @
4fbd44fd
import
EVMThrow
from
'../helpers/EVMThrow'
;
import
EVMThrow
from
'../
../
helpers/EVMThrow'
;
require
(
'chai'
)
.
use
(
require
(
'chai-as-promised'
))
.
should
();
const
SafeERC20Helper
=
artifacts
.
require
(
'
mocks/
SafeERC20Helper.sol'
);
const
SafeERC20Helper
=
artifacts
.
require
(
'SafeERC20Helper.sol'
);
contract
(
'SafeERC20'
,
function
()
{
beforeEach
(
async
function
()
{
...
...
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