embark-area-51/templates/boilerplate/test/contract_spec.js

30 lines
753 B
JavaScript
Raw Normal View History

2018-01-12 23:11:24 +00:00
//describe("SimpleStorage", function() {
// this.timeout(0);
2016-10-02 23:13:46 +00:00
// before(function(done) {
// this.timeout(0);
2016-10-02 23:13:46 +00:00
// var contractsConfig = {
// "SimpleStorage": {
2018-01-12 23:11:24 +00:00
// args: [100]
2016-10-02 23:13:46 +00:00
// }
// };
2018-01-12 23:11:24 +00:00
// EmbarkSpec.deployAll(contractsConfig, () => { done() });
2016-10-02 23:13:46 +00:00
// });
//
// it("should set constructor value", function(done) {
2018-01-12 23:11:24 +00:00
// SimpleStorage.methods.storedData().call().then(function(result) {
// assert.equal(result, 100);
2016-10-02 23:13:46 +00:00
// done();
// });
// });
//
// it("set storage value", function(done) {
2018-01-12 23:11:24 +00:00
// SimpleStorage.methods.set(150).send().then(function() {
// SimpleStorage.methods.get().call().then(function(result) {
// assert.equal(result, 150);
2016-10-02 23:13:46 +00:00
// done();
// });
// });
// });
//
2018-01-12 23:11:24 +00:00
//});