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