DAVFoundation / dav-js

Enable integration of JavaScript, TypeScript, and Node.js code with the DAV Network
https://developers.dav.network/
MIT License
76 stars 51 forks source link

Fix Contacts tests #141

Closed vne closed 5 years ago

vne commented 5 years ago

Correctly define sendSignedTransaction in web3.eth mock to fix the contracts tests that throw web3 error

Related Issue

Presumably, #139 is related. Please, note that this PR addresses only Contracts tests issues, so after merging Travis will still fail because of failing Kafka tests (see PR https://github.com/DAVFoundation/dav-js/pull/140).

Motivation and Context

Contracts tests were failing.

How Has This Been Tested?

npm run jest

$ node -v v10.15.3 $ npm -v 6.4.1

Types of changes

Checklist:

mariolo1985 commented 5 years ago

hey @vne thanks for fixing issues related to #139 and the failing jest tests 👍