repl.it
@divyanshugupta/

EthereumApp

Nodejs

A node.js app for compiling,testing and depolying a smart contract on a test network(or any network on ethereum blockchain)

fork
loading
Files
  • index.js
  • contracts
  • test
  • compile.js
  • Packager files
  • package.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//const compile= require('./compile.js');

//Unit testing with Mocha using javascript API
const Mocha = require('mocha');

const runner = new Mocha({});

runner.addFile('./test/Inbox.test.js');

runner.run(failures => {
  if (failures) {
    console.error(failures);
  } else {
    console.log('All passed.');
  }
})