So I created a truffle folder for solidity, wrote down the basic test.js and ipfsContract.sol needed (Creating a form in IPFS for users to enter data). HOWEVER, on doing
truffle test I get
0 passing in green, although I do ask test.js to print out the hash code!
[I also do one edit in test.js -
const IPFS = require('ipfs') // importing IPFS module and instantiating it.
const node = new IPFS()]
Reading various articles on the net, I am thinking if I need to create an extra .js file outside the truffle directory to make it work. But I could be wrong! ANy help?