From f67e30bfd23f53912904e8d9f267f3291a497b56 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 4 Aug 2014 16:07:54 -0700 Subject: [PATCH] paypro: start writing more tests. --- test/test.PayPro.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/test.PayPro.js b/test/test.PayPro.js index a31b9d2e1..242a936bd 100644 --- a/test/test.PayPro.js +++ b/test/test.PayPro.js @@ -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) { var w = createWallet(); should.exist(w);