2015-07-03 22:27:17 -04:00
|
|
|
var Config = require('../lib/config/config.js');
|
|
|
|
var Test = require('../lib/test.js');
|
2015-07-03 23:23:21 -04:00
|
|
|
var Compiler = require('../lib/compiler.js');
|
2015-07-03 22:27:17 -04:00
|
|
|
var assert = require('assert');
|
2015-06-27 22:20:07 -04:00
|
|
|
|
2015-07-03 22:27:17 -04:00
|
|
|
//var contractFiles = grunt.file.expand("./app/contracts/**/*.sol")
|
|
|
|
|
|
|
|
describe('embark.test', function() {
|
2016-02-08 21:12:09 -05:00
|
|
|
//var files = [
|
|
|
|
// 'test/support/contracts/simple_storage.sol'
|
|
|
|
//]
|
|
|
|
//var _blockchainConfig = (new Config.Blockchain()).loadConfigFile('test/support/blockchain.yml');
|
|
|
|
//var blockchainConfig = _blockchainConfig.config("development");
|
|
|
|
//var compiler = new Compiler(_blockchainConfig);
|
|
|
|
//var contractsConfig = new Config.Contracts(blockchainConfig, compiler);
|
|
|
|
//contractsConfig.loadConfigFile('test/support/contracts.yml');
|
|
|
|
//contractsConfig.init(files, 'development');
|
2015-07-03 22:27:17 -04:00
|
|
|
|
2016-02-08 21:12:09 -05:00
|
|
|
//describe('simple test', function() {
|
|
|
|
// var embarkSpec = new Test(contractsConfig, files);
|
2015-07-03 22:27:17 -04:00
|
|
|
|
2016-02-08 21:12:09 -05:00
|
|
|
// it('execute simple test', function() {
|
|
|
|
// var SimpleStorage = embarkSpec.request('SimpleStorage', [100])
|
2015-07-03 22:27:17 -04:00
|
|
|
|
2016-02-08 21:12:09 -05:00
|
|
|
// assert.equal(SimpleStorage.storedData(), '100');
|
|
|
|
// });
|
|
|
|
//});
|
2015-07-03 22:27:17 -04:00
|
|
|
|
|
|
|
});
|