Commit 8b921dc6 by Manuel Araoz

fix pullpaymentcapable test

parent 8f4027cd
import '../contracts/PullPaymentCapable.sol'; import '../PullPaymentCapable.sol';
// Example class using PullPaymentCapable // Example class using PullPaymentCapable
contract PullPaymentCapableExample is PullPaymentCapable { contract PullPaymentCapableExample is PullPaymentCapable {
......
contract('PullPaymentCapable', function(accounts) { contract('PullPaymentCapable', function(accounts) {
it("can't call asyncSend externally", function(done) { it("can't call asyncSend externally", function(done) {
var ppc = PullPaymentCapable.new(); var ppc;
assert.isUndefined(ppc.asyncSend); return PullPaymentCapableExample.new()
done(); .then(function(ppc) {
assert.isUndefined(ppc.asyncSend);
})
.then(done);
}); });
it("can record an async payment correctly", function(done) { it("can record an async payment correctly", function(done) {
var ppce; var ppce;
var AMOUNT = 1000; var AMOUNT = 100;
return PullPaymentCapableExample.new() return PullPaymentCapableExample.new()
.then(function(_ppce) { .then(function(_ppce) {
ppce = _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