fix pullpaymentcapable test
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import '../contracts/PullPaymentCapable.sol';
|
import '../PullPaymentCapable.sol';
|
||||||
|
|
||||||
// Example class using PullPaymentCapable
|
// Example class using PullPaymentCapable
|
||||||
contract PullPaymentCapableExample is PullPaymentCapable {
|
contract PullPaymentCapableExample is PullPaymentCapable {
|
||||||
@ -1,14 +1,17 @@
|
|||||||
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;
|
||||||
|
return PullPaymentCapableExample.new()
|
||||||
|
.then(function(ppc) {
|
||||||
assert.isUndefined(ppc.asyncSend);
|
assert.isUndefined(ppc.asyncSend);
|
||||||
done();
|
})
|
||||||
|
.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;
|
||||||
|
|||||||
Reference in New Issue
Block a user