embark/dapps/tests/app/test/interface_spec.js
Pascal Precht b021689387 feat(@embark/test-runner): introduce artifacts.require API
This commit adds a convenience API `artifacts.require(name)` that aims to make
requiring artifacts a little bit more straight forward.

Usage:

```
const SimpleStorage = artifacts.require('SimpleStorage');
const EmbarkJS = artifacts.require('EmbarkJS');
```
2020-02-12 14:17:30 -05:00

25 lines
701 B
JavaScript

/*global artifacts, contract, config, it*/
const assert = require('assert');
const AnotherStorage = artifacts.require('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');
});
});