fix pullpaymentcapable test

This commit is contained in:
Manuel Araoz
2016-09-30 18:51:42 -03:00
parent 8f4027cdf6
commit 8b921dc6ec
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import '../contracts/PullPaymentCapable.sol';
import '../PullPaymentCapable.sol';
// Example class using PullPaymentCapable
contract PullPaymentCapableExample is PullPaymentCapable {

View File

@ -1,14 +1,17 @@
contract('PullPaymentCapable', function(accounts) {
it("can't call asyncSend externally", function(done) {
var ppc = PullPaymentCapable.new();
var ppc;
return PullPaymentCapableExample.new()
.then(function(ppc) {
assert.isUndefined(ppc.asyncSend);
done();
})
.then(done);
});
it("can record an async payment correctly", function(done) {
var ppce;
var AMOUNT = 1000;
var AMOUNT = 100;
return PullPaymentCapableExample.new()
.then(function(_ppce) {
ppce = _ppce;