mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 06:16:01 +00:00
a3b52676fc
* fix: fix tests hanging because the console is not started * fix(@embark/proxy): send back errors correctly to the client Code originally by @emizzle and fixed by me * feat(@embark/test-runner): add assert.reverts to test reverts * fix: make test app actually run its test and not hang * fix(@embark/proxy): fix listening to contract event in the proxy * feat(@embark/test-runner): add assertion for events being triggered * docs(@embark/site): add docs for the new assert functions * feat(@embark/test-runner): add increaseTime util function to globals * docs(@embark/site): add docs for increaseTime
26 lines
698 B
JavaScript
26 lines
698 B
JavaScript
/*global contract, config, it*/
|
|
const assert = require('assert');
|
|
const AnotherStorage = require('Embark/contracts/AnotherStorage');
|
|
|
|
// FIXME this doesn't work and no idea how it ever worked because ERC20 is not defined anywhere
|
|
// config({
|
|
// contracts: {
|
|
// deploy: {
|
|
// AnotherStorage: {
|
|
// args: ['$ERC20']
|
|
// }
|
|
// }
|
|
// }
|
|
// });
|
|
|
|
|
|
contract("AnotherStorageWithInterface", function() {
|
|
this.timeout(0);
|
|
|
|
xit("sets an empty address because ERC20 is an interface", async function() {
|
|
let result = await AnotherStorage.methods.simpleStorageAddress().call();
|
|
assert.strictEqual(result.toString(), '0x0000000000000000000000000000000000000000');
|
|
});
|
|
});
|
|
|