Commit 8b921dc6 by Manuel Araoz

fix pullpaymentcapable test

parent 8f4027cd
import '../contracts/PullPaymentCapable.sol';
import '../PullPaymentCapable.sol';
// Example class using PullPaymentCapable
contract PullPaymentCapableExample is PullPaymentCapable {
......
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment