paypro: start writing more tests.
This commit is contained in:
parent
6d64935889
commit
f67e30bfd2
1 changed files with 18 additions and 0 deletions
|
|
@ -158,6 +158,24 @@ describe('PayPro (in Wallet) model', function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('#retrieve a payment request message via http', function(done) {
|
||||||
|
var w = createWallet();
|
||||||
|
should.exist(w);
|
||||||
|
var req = {};
|
||||||
|
server.POST['/-/request'](req, function(err, res, body) {
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('#send a payment message via http', function(done) {
|
||||||
|
var w = createWallet();
|
||||||
|
should.exist(w);
|
||||||
|
var req = {};
|
||||||
|
server.POST['/-/pay'](req, function(err, res, body) {
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
it('#send a payment request', function(done) {
|
it('#send a payment request', function(done) {
|
||||||
var w = createWallet();
|
var w = createWallet();
|
||||||
should.exist(w);
|
should.exist(w);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue