UNPKG

556 BJavaScriptView Raw
1/* globals describe it */
2const should = require('should');
3
4const zapier = require('zapier-platform-core');
5
6// Use this to make test calls into your app:
7const App = require('../../index');
8const appTester = zapier.createAppTester(App);
9zapier.tools.env.inject();
10
11describe('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});