1 |
|
2 | const should = require('should');
|
3 |
|
4 | const zapier = require('zapier-platform-core');
|
5 |
|
6 |
|
7 | const App = require('../../index');
|
8 | const appTester = zapier.createAppTester(App);
|
9 | zapier.tools.env.inject();
|
10 |
|
11 | describe('My App', () => {
|
12 | it('should run <%= ACTION_PLURAL %>.<%= KEY %>', async () => {
|
13 | const bundle = { inputData: {} };
|
14 |
|
15 | const results = await appTester(App.<%= ACTION_PLURAL %>.<%= KEY %>.<%= MAYBE_RESOURCE %>operation.perform, bundle);
|
16 | should.exist(results);
|
17 | });
|
18 | });
|