UNPKG

528 BJavaScriptView Raw
1require('should');
2
3const zapier = require('zapier-platform-core');
4
5const App = require('../../index');
6const appTester = zapier.createAppTester(App);
7
8describe('Trigger - <%= key %>', () => {
9 zapier.tools.env.inject();
10
11 it('should get an array', async () => {
12 const bundle = {
13 authData: <%= authData %>,
14<% if (inputData) { %>
15 inputData: <%= inputData %>
16<% } %>
17 };
18
19 const results = await appTester(App.triggers['<%= key %>'].operation.perform, bundle);
20 results.should.be.an.Array();
21 });
22});
23
\No newline at end of file