Created
May 22, 2020 16:00
-
-
Save siddjain/a67c2fece986ccc6b70aa2a2e6aa8bfe to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ npm test | |
> [email protected] pretest /Users/sjain68/go/src/github.com/siddjain/phf/boilerplate-contract | |
> npm run lint | |
> [email protected] lint /Users/sjain68/go/src/github.com/siddjain/phf/boilerplate-contract | |
> tslint -c tslint.json 'src/**/*.ts' | |
> [email protected] test /Users/sjain68/go/src/github.com/siddjain/phf/boilerplate-contract | |
> nyc mocha -r ts-node/register test/**/*.spec.ts | |
2020-05-22T16:00:03.729Z info [c-api:./lib/annotations/object.js] @Object args: Target -> %s "Function" | |
2020-05-22T16:00:03.731Z info [c-api:./lib/annotations/transaction.js] @Returns args: ", Property Key -> assetExists, Return Type -> boolean,","Target ->","AssetContract" | |
2020-05-22T16:00:03.731Z info [c-api:./lib/annotations/transaction.js] @Transaction args: "Property Key -> assetExists, Commit -> false,","Target ->","AssetContract" | |
2020-05-22T16:00:03.732Z info [c-api:./lib/annotations/transaction.js] @Transaction args: "Property Key -> createAsset, Commit -> true,","Target ->","AssetContract" | |
2020-05-22T16:00:03.733Z info [c-api:./lib/annotations/transaction.js] @Returns args: ", Property Key -> readAsset, Return Type -> Asset,","Target ->","AssetContract" | |
2020-05-22T16:00:03.733Z info [c-api:./lib/annotations/transaction.js] @Transaction args: "Property Key -> readAsset, Commit -> false,","Target ->","AssetContract" | |
2020-05-22T16:00:03.734Z info [c-api:./lib/annotations/transaction.js] @Transaction args: "Property Key -> updateAsset, Commit -> true,","Target ->","AssetContract" | |
2020-05-22T16:00:03.734Z info [c-api:./lib/annotations/transaction.js] @Transaction args: "Property Key -> deleteAsset, Commit -> true,","Target ->","AssetContract" | |
2020-05-22T16:00:03.734Z info [c-api:./lib/annotations/info.js] @Info args: "Info -> [object Object],","Target ->","AssetContract" | |
AssetContract | |
#assetExists | |
2020-05-22T16:00:03.911Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should return true for a asset | |
2020-05-22T16:00:03.925Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should return false for a asset that does not exist | |
#createAsset | |
2020-05-22T16:00:03.935Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should create a asset | |
2020-05-22T16:00:03.948Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should throw an error for a asset that already exists | |
#readAsset | |
2020-05-22T16:00:03.958Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should return a asset | |
2020-05-22T16:00:03.968Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should throw an error for a asset that does not exist | |
#updateAsset | |
2020-05-22T16:00:03.977Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should update a asset | |
2020-05-22T16:00:03.989Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should throw an error for a asset that does not exist | |
#deleteAsset | |
2020-05-22T16:00:03.998Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should delete a asset | |
2020-05-22T16:00:04.008Z info [c-api:./lib/contract.js] Creating new Contract | |
✓ should throw an error for a asset that does not exist | |
10 passing (109ms) | |
=============================== Coverage summary =============================== | |
Statements : 100% ( 93/93 ) | |
Branches : 100% ( 10/10 ) | |
Functions : 100% ( 23/23 ) | |
Lines : 100% ( 88/88 ) | |
================================================================================ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment