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 <%= TYPE %>s.<%= KEY %>', done => {
|
13 | const bundle = { inputData: {} };
|
14 |
|
15 | appTester(App.<%= TYPE_PLURAL %>.<%= KEY %>.<%= MAYBE_RESOURCE %>operation.perform, bundle)
|
16 | .then(results => {
|
17 | should.exist(results);
|
18 | done();
|
19 | })
|
20 | .catch(done);
|
21 | });
|
22 | });
|