1 | /* globals describe, expect, test, it */
|
2 |
|
3 | const zapier = require('zapier-platform-core');
|
4 |
|
5 | // Use this to make test calls into your app:
|
6 | const App = require('../../index');
|
7 | const appTester = zapier.createAppTester(App);
|
8 | // read the `.env` file into the environment, if available
|
9 | zapier.tools.env.inject();
|
10 |
|
11 | describe('<%= 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 | });
|