So I am using truffle. Following from Creating a form in IPFS for users to enter data [check the code in answer], doing some changes:
Contract name - IpfsContract.sol test.js uses the following JSON Structure within the test():
const data = JSON.stringify({
name: "Rahul Kothari",
age: "21", // maybe "21"?
sex: "male"
})
My 1_initial_migration.js
and truffle-config.js
files work fine!
Using truffle develop, on CMD I run truffle compile
truffle migrate
. Works perfectly! I then run truffle test
and it displays: 0 passing (1ms)
in green. No other output although, my test.js used console.log!
Any help will be appreciated! Thanks!