Skip to content

Commit

Permalink
Full refactor of the tests to use await method
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaylina committed Oct 21, 2017
1 parent b828579 commit 5665bd4
Show file tree
Hide file tree
Showing 23 changed files with 5,353 additions and 3,263 deletions.
43 changes: 2 additions & 41 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,46 +1,7 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
// indentation
"indent": [ 2, 4 ],

// spacing
"template-curly-spacing": [ 2, "always" ],
"array-bracket-spacing": [ 2, "always" ],
"object-curly-spacing": [ 2, "always" ],
"computed-property-spacing": [ 2, "always" ],
"no-multiple-empty-lines": [ 2, { "max": 1, "maxEOF": 0, "maxBOF": 0 } ],

// strings
"quotes": [ 2, "double", "avoid-escape" ],

// code arrangement matter
"no-use-before-define": [ 2, { "functions": false } ],

// make it meaningful
"prefer-const": 1,

// keep it simple
"complexity": [ 1, 5 ],

// Consisten return
"consistent-return": 0,

// Allow concatenations
"prefer-template": 0,

"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.js", "**/*.spec.js", "**/compile.js", "**/test/*.js"]}],

// react
"react/prefer-es6-class": 0,
"react/jsx-filename-extension": 0,
"react/jsx-indent": [ 2, 4 ]
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }]
}
}
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: 'node_js'
node_js:
- '8'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
![MiniMe Token](readme-header.png)

[![Build Status](https://travis-ci.org/Giveth/minime.svg?branch=master)](https://travis-ci.org/Giveth/minime)

The MiniMeToken contract is a standard ERC20 token with extra functionality:

### The token is easy to clone!
Expand Down
7 changes: 7 additions & 0 deletions build/Controlled.sol.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions build/Controlled_all.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

//File: ./contracts/Controlled.sol
pragma solidity ^0.4.18;

contract Controlled {
/// @notice The address of the controller is the only address that can call
/// a function with this modifier
modifier onlyController { require(msg.sender == controller); _; }

address public controller;

function Controlled() public { controller = msg.sender;}

/// @notice Changes the controller of the contract
/// @param _newController The new controller of the contract
function changeController(address _newController) public onlyController {
controller = _newController;
}
}
19 changes: 19 additions & 0 deletions build/MiniMeToken.sol.js

Large diffs are not rendered by default.

Loading

0 comments on commit 5665bd4

Please sign in to comment.