fix pullpaymentcapable test
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import '../contracts/PullPaymentCapable.sol';
|
||||
import '../PullPaymentCapable.sol';
|
||||
|
||||
// Example class using PullPaymentCapable
|
||||
contract PullPaymentCapableExample is PullPaymentCapable {
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user