Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / stripe-webhook-middleware / stripe-webhook-middleware.js
311 bytesRaw
1 | ; |
2 | |
3 | var StripeWebhook = require('stripe-webhook-middleware'); |
4 | var req = { headers: { }, body: { id: 'hello' } }; |
5 | var res = { status: function () { |
6 | return this; |
7 | }, end: function () { |
8 | console.log('ok'); |
9 | } }; |
10 | |
11 | var middleware = (new StripeWebhook()).middleware; |
12 | middleware(req, res, function () {}); |
13 |
Built with git-ssb-web