mirror of
https://github.com/embarklabs/embark-vyper-template.git
synced 2025-02-17 23:16:22 +00:00
26 lines
674 B
JavaScript
26 lines
674 B
JavaScript
|
// /*global contract, config, it, assert*/
|
||
|
/*const SimpleStorage = require('Embark/contracts/SimpleStorage');
|
||
|
|
||
|
config({
|
||
|
contracts: {
|
||
|
"SimpleStorage": {
|
||
|
args: [100]
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
contract("SimpleStorage", function () {
|
||
|
this.timeout(0);
|
||
|
|
||
|
it("should set constructor value", async function () {
|
||
|
let result = await SimpleStorage.methods.storedData().call();
|
||
|
assert.strictEqual(parseInt(result, 10), 100);
|
||
|
});
|
||
|
|
||
|
it("set storage value", async function () {
|
||
|
await SimpleStorage.methods.set(150).send();
|
||
|
let result = await SimpleStorage.methods.get().call();
|
||
|
assert.strictEqual(parseInt(result, 10), 150);
|
||
|
});
|
||
|
});*/
|