UNPKG

630 BJavaScriptView Raw
1/* globals describe, expect, test, it */
2
3const zapier = require('zapier-platform-core');
4
5// Use this to make test calls into your app:
6const App = require('../../index');
7const appTester = zapier.createAppTester(App);
8// read the `.env` file into the environment, if available
9zapier.tools.env.inject();
10
11describe('<%= ACTION_PLURAL %>.<%= KEY %>', () => {
12 it('should run', async () => {
13 const bundle = { inputData: {} };
14
15 const results = await appTester(App.<%= ACTION_PLURAL %>.<%= KEY %>.<%= MAYBE_RESOURCE %>operation.perform, bundle);
16 expect(results).toBeDefined();
17 // TODO: add more assertions
18 });
19});