Skip to content

Instantly share code, notes, and snippets.

@Jblew
Created August 29, 2018 17:28
Show Gist options
  • Save Jblew/ac2b991118fe53799440cad699a813f5 to your computer and use it in GitHub Desktop.
Save Jblew/ac2b991118fe53799440cad699a813f5 to your computer and use it in GitHub Desktop.
teofil  ~/git-repository/steem-wise/steem-wise-core   master ● ⍟7  npm run verify  1 ↵  9130  19:20:22
> steem-wise-core@1.0.0 verify /Users/teofil/git-repository/steem-wise/steem-wise-core
> mocha -r ts-node/register test/integration/**/*.spec.ts
test/integration/api.spec.ts
api FakeApi
#getWiseOperations
2018-08-29 19:20:47 [debug]: Debug on
2018-08-29 19:20:47 [debug]: {"moment":{"blockNum":25330824,"transactionNum":18,"operationNum":0},"transaction_id":"1c5cac353ad9e570731b008f05d30661fee208f9","timestamp":"2018-08-23T21:59:48.000Z","voter":"fervi","delegator":"noisy","command":{"voteorderTxId":"94e3b7709a31d743c4e1ef4bfdcb0ccdbec603c6","accepted":true,"msg":""}}
2018-08-29 19:20:47 [debug]: {"moment":{"blockNum":25043492,"transactionNum":3,"operationNum":0},"transaction_id":"d5e27066d27c7e5214d06cd0f8ee587cce69afb4","timestamp":"2018-08-13T22:28:27.000Z","voter":"fervi","delegator":"noisy","command":{"voteorderTxId":"455c361c78f4314a97788c8df77b7d6ac60380e7","accepted":true,"msg":""}}
1) Returns ConfirmVoteBoundWithVote instead of pure ConfirmVote (when accepted = true)
0 passing (93ms)
1 failing
1) test/integration/api.spec.ts
api FakeApi
#getWiseOperations
Returns ConfirmVoteBoundWithVote instead of pure ConfirmVote (when accepted = true):
isConfirmVoteBoundWithVote(.cmd)
+ expected - actual
-false
+true
at /Users/teofil/git-repository/steem-wise/steem-wise-core/test/integration/api.spec.ts:329:125
at Array.forEach (<anonymous>)
at /Users/teofil/git-repository/steem-wise/steem-wise-core/test/integration/api.spec.ts:322:25
at tryCatcher (node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/bluebird/js/release/async.js:17:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! steem-wise-core@1.0.0 verify: `mocha -r ts-node/register test/integration/**/*.spec.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the steem-wise-core@1.0.0 verify script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/teofil/.npm/_logs/2018-08-29T17_20_47_933Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment