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
1547000d
Commit
1547000d
authored
Nov 13, 2016
by
Steve Ellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move Ownable tests away from migration fixtures
parent
a3362f72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Ownable.js
test/Ownable.js
+8
-3
No files found.
test/Ownable.js
View file @
1547000d
contract
(
'Ownable'
,
function
(
accounts
)
{
var
ownable
;
beforeEach
(
function
()
{
return
Ownable
.
new
().
then
(
function
(
deployed
)
{
ownable
=
deployed
;
});
});
it
(
"should have an owner"
,
function
(
done
)
{
var
ownable
=
Ownable
.
deployed
();
return
ownable
.
owner
()
.
then
(
function
(
owner
)
{
assert
.
isTrue
(
owner
!=
0
);
...
...
@@ -9,7 +16,6 @@ contract('Ownable', function(accounts) {
});
it
(
"changes owner after transfer"
,
function
(
done
)
{
var
ownable
=
Ownable
.
deployed
();
var
other
=
accounts
[
1
];
return
ownable
.
transfer
(
other
)
.
then
(
function
()
{
...
...
@@ -22,7 +28,6 @@ contract('Ownable', function(accounts) {
});
it
(
"should prevent non-owners from transfering"
,
function
(
done
)
{
var
ownable
=
Ownable
.
deployed
();
var
other
=
accounts
[
2
];
return
ownable
.
transfer
(
other
,
{
from
:
accounts
[
2
]})
.
then
(
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