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) {
|
2017-03-08 14:41:16 +00:00
|
|
|
// 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
|
|
|
// });
|
|
|
|
//
|
2018-04-17 18:48:31 +00:00
|
|
|
// it("should set constructor value", async function() {
|
|
|
|
// let result = await SimpleStorage.methods.storedData().call();
|
|
|
|
// assert.equal(result, 100);
|
2016-10-02 23:13:46 +00:00
|
|
|
// });
|
|
|
|
//
|
2018-04-17 18:48:31 +00:00
|
|
|
// it("set storage value", async function() {
|
|
|
|
// await SimpleStorage.methods.set(150).send();
|
|
|
|
// let result = await SimpleStorage.methods.get().call();
|
|
|
|
// assert.equal(result, 150);
|
2016-10-02 23:13:46 +00:00
|
|
|
// });
|
|
|
|
//
|
2018-01-12 23:11:24 +00:00
|
|
|
//});
|