Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janb87 committed Feb 2, 2018
1 parent 7a471b8 commit d3f826d
Show file tree
Hide file tree
Showing 9 changed files with 4,158 additions and 598 deletions.
28 changes: 20 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"root": true,
"env": {
"browser": true,
"es6": true
"es6": true,
"jest/globals": true
},
"parserOptions": {
"sourceType": "module",
Expand All @@ -11,13 +12,16 @@
"modules": true
}
},
"plugins": [
"jest"
],
"extends": "airbnb-base",
"rules": {
"arrow-body-style": "off",
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
"default-case": "off",
"indent": ["error", 4, { "SwitchCase": 1 }],
"indent": ["error", 4, {"SwitchCase": 1}],
"max-len": ["error", 120, {"ignoreComments": true, "ignoreTemplateLiterals": true}],
"no-console": 0,
"no-trailing-spaces": ["error"],
Expand All @@ -26,15 +30,23 @@
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"import/prefer-default-export": "off",
"func-names": "off",
"no-restricted-syntax": "off",
"no-await-in-loop": "off"
"no-await-in-loop": "off",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
},
"globals": {"module": true}
}
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@

This repository consists out of a set of utilities functions which can be used to interact with chaincode on a Fabric blockchain network.

## API

TODO

## Run tests

1. Make sure you have installed Docker and Python
2. Make sure you have added the path of the repo to the Docker file sharing preferences
3. Run `npm install`
4. Run `npm test`
Loading

0 comments on commit d3f826d

Please sign in to comment.