|
@@ -1,14 +1,17 @@
|
|
|
contract('PullPaymentCapable', function(accounts) {
|
|
|
|
|
|
it("can't call asyncSend externally", function(done) {
|
|
|
- var ppc = PullPaymentCapable.new();
|
|
|
- assert.isUndefined(ppc.asyncSend);
|
|
|
- done();
|
|
|
+ var ppc;
|
|
|
+ return PullPaymentCapableExample.new()
|
|
|
+ .then(function(ppc) {
|
|
|
+ assert.isUndefined(ppc.asyncSend);
|
|
|
+ })
|
|
|
+ .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;
|