diff options
Diffstat (limited to 'graphcool/src/createCharge.test.js')
| -rw-r--r-- | graphcool/src/createCharge.test.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/graphcool/src/createCharge.test.js b/graphcool/src/createCharge.test.js deleted file mode 100644 index 65dde47..0000000 --- a/graphcool/src/createCharge.test.js +++ /dev/null @@ -1,23 +0,0 @@ -const takeMoney = require('./createCharge'); - -const event = { - "data": { - "user": "cj6ntm8qic3260140vkuzif9d", - "token": "tok_visa", - }, - "context": { - "headers": {} - } -} - - -describe('Take Money', () => { - - test('A charge has come back', async () => { - const res = await takeMoney(event); - console.log(res); - expect(res.data.amount).toBeGreaterThanOrEqual(0); - }); - -}); - |
