From cd0b07b3adb36fb5ec098f9e511ab45d774fee7b Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 30 Jan 2018 12:41:01 -0500 Subject: Move to Prisma Backend --- graphcool/src/createCharge.test.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 graphcool/src/createCharge.test.js (limited to 'graphcool/src/createCharge.test.js') 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); - }); - -}); - -- cgit v1.3