You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
464 B
17 lines
464 B
/* eslint-env node, mocha */
|
|
/* global artifacts, contract, assert */
|
|
|
|
const asset = require('../assets/asset.js');
|
|
|
|
const Simple = artifacts.require('./Simple.sol');
|
|
|
|
contract('Simple', () => {
|
|
it('should be able to require an external asset', () => {
|
|
let simple;
|
|
return Simple.deployed().then(instance => {
|
|
simple = instance;
|
|
assert.equal(asset.value, true);
|
|
return simple.test(5); // Make sure we generate an event;
|
|
});
|
|
});
|
|
}); |