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.
18 lines
480 B
18 lines
480 B
8 years ago
|
/* eslint-env node, mocha */
|
||
|
/* global artifacts, contract, assert */
|
||
8 years ago
|
|
||
|
const Simple = artifacts.require('./Simple.sol');
|
||
|
|
||
|
// This test is constructed correctly but the SimpleError.sol has a syntax error
|
||
8 years ago
|
contract('SimpleError', () => {
|
||
8 years ago
|
it('should set x to 5', () => {
|
||
|
let simple;
|
||
8 years ago
|
return Simple.deployed().then(instance => {
|
||
8 years ago
|
simple = instance;
|
||
|
return simple.test(5);
|
||
|
})
|
||
8 years ago
|
.then(() => simple.getX.call())
|
||
8 years ago
|
.then(val => assert.equal(val, 5));
|
||
|
});
|
||
|
});
|