git ssb

0+

cel-desktop / ssb-pkg



Tree: e9d9dec1d00ff365112ca0f981bbda15e3682528

Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / test / test-79-npm / stripe-webhook-middleware / stripe-webhook-middleware.js

311 bytesRaw
1'use strict';
2
3var StripeWebhook = require('stripe-webhook-middleware');
4var req = { headers: { }, body: { id: 'hello' } };
5var res = { status: function () {
6 return this;
7}, end: function () {
8 console.log('ok');
9} };
10
11var middleware = (new StripeWebhook()).middleware;
12middleware(req, res, function () {});
13

Built with git-ssb-web