forked from Giveth/minime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full refactor of the tests to use await method
- Loading branch information
Showing
23 changed files
with
5,353 additions
and
3,263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
language: 'node_js' | ||
node_js: | ||
- '8' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.