mcdev 8.3.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
  2. package/.github/workflows/close_issues_on_merge.yml +4 -0
  3. package/.github/workflows/coverage-base-update.yml +2 -2
  4. package/.github/workflows/coverage-develop-branch.yml +1 -1
  5. package/.github/workflows/coverage-main-branch.yml +1 -1
  6. package/.github/workflows/coverage.yml +2 -2
  7. package/.github/workflows/npm-publish.yml +0 -2
  8. package/@types/lib/index.d.ts.map +1 -1
  9. package/@types/lib/metadataTypes/DataFilter.d.ts +19 -9
  10. package/@types/lib/metadataTypes/DataFilter.d.ts.map +1 -1
  11. package/@types/lib/metadataTypes/DataFilterHidden.d.ts +1 -0
  12. package/@types/lib/metadataTypes/DataFilterHidden.d.ts.map +1 -1
  13. package/@types/lib/metadataTypes/FileLocation.d.ts +74 -0
  14. package/@types/lib/metadataTypes/FileLocation.d.ts.map +1 -1
  15. package/@types/lib/metadataTypes/Journey.d.ts +6 -0
  16. package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
  17. package/@types/lib/metadataTypes/MetadataType.d.ts +6 -0
  18. package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
  19. package/@types/lib/metadataTypes/Script.d.ts +14 -0
  20. package/@types/lib/metadataTypes/Script.d.ts.map +1 -1
  21. package/@types/lib/metadataTypes/definitions/DataFilter.definition.d.ts +1 -0
  22. package/@types/lib/metadataTypes/definitions/DataFilterHidden.definition.d.ts +1 -0
  23. package/@types/lib/metadataTypes/definitions/FileLocation.definition.d.ts +62 -4
  24. package/@types/lib/metadataTypes/definitions/Journey.definition.d.ts +6 -0
  25. package/@types/lib/metadataTypes/definitions/Script.definition.d.ts +10 -0
  26. package/lib/cli.js +6 -0
  27. package/lib/index.js +1 -0
  28. package/lib/metadataTypes/DataFilter.js +82 -27
  29. package/lib/metadataTypes/Event.js +2 -2
  30. package/lib/metadataTypes/FileLocation.js +204 -4
  31. package/lib/metadataTypes/Journey.js +72 -45
  32. package/lib/metadataTypes/MetadataType.js +14 -0
  33. package/lib/metadataTypes/Script.js +16 -0
  34. package/lib/metadataTypes/definitions/DataFilter.definition.js +1 -0
  35. package/lib/metadataTypes/definitions/DataFilterHidden.definition.js +1 -0
  36. package/lib/metadataTypes/definitions/FileLocation.definition.js +52 -7
  37. package/lib/metadataTypes/definitions/Journey.definition.js +6 -0
  38. package/lib/metadataTypes/definitions/Script.definition.js +6 -0
  39. package/package.json +11 -11
  40. package/test/general.test.js +11 -11
  41. package/test/mockRoot/.mcdevrc.json +1 -1
  42. package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-fail.asset-block-meta.json → testExisting_asset_html-matchNamFail.asset-block-meta.json} +1 -1
  43. package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName.asset-block-meta.json → testExisting_asset_html-matchName.asset-block-meta.json} +1 -1
  44. package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-create.asset-block-meta.json → testExisting_asset_html-matchNameAdd.asset-block-meta.json} +3 -3
  45. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/ExactTarget Enhanced FTP.fileLocation-meta.json +5 -0
  46. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_aws.fileLocation-meta.json +14 -0
  47. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_exsftp.fileLocation-meta.json +12 -0
  48. package/test/resourceFactory.js +9 -2
  49. package/test/resources/9999999/asset/v1/content/assets/1295064/patch-response.json +1 -1
  50. package/test/resources/9999999/automation/v1/ftplocations/get-response.json +26 -1
  51. package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/get-response.json +10 -0
  52. package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json +2 -2
  53. package/test/resources/9999999/data/v1/filetransferlocation/Salesforce%20Objects%20%26%20Reports/get-response.json +4 -0
  54. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_aws/patch-response.json +18 -0
  55. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/delete-response.json +4 -0
  56. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/get-response.json +18 -0
  57. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_exsftp/patch-response.json +16 -0
  58. package/test/resources/9999999/data/v1/filetransferlocations/get-response.json +59 -0
  59. package/test/resources/9999999/fileLocation/build-expected.json +14 -0
  60. package/test/resources/9999999/fileLocation/get-aws-expected.json +14 -0
  61. package/test/resources/9999999/fileLocation/get-azure-expected.json +14 -0
  62. package/test/resources/9999999/fileLocation/get-eftp-expected.json +5 -0
  63. package/test/resources/9999999/fileLocation/get-exsftp-expected.json +12 -0
  64. package/test/resources/9999999/fileLocation/get-gcp-expected.json +10 -0
  65. package/test/resources/9999999/fileLocation/get-sor-expected.json +5 -0
  66. package/test/resources/9999999/fileLocation/patch-aws-expected.json +14 -0
  67. package/test/resources/9999999/fileLocation/patch-exsftp-expected.json +12 -0
  68. package/test/resources/9999999/fileLocation/template-expected.json +14 -0
  69. package/test/resources/9999999/interaction/v1/interactions/get-response-status=Published.json +40 -0
  70. package/test/type.asset.test.js +7 -7
  71. package/test/type.automation.test.js +14 -14
  72. package/test/type.dataFilter.test.js +10 -2
  73. package/test/type.fileLocation.test.js +279 -0
  74. package/test/type.fileTransfer.test.js +4 -4
  75. package/test/type.filter.test.js +9 -2
  76. package/test/type.importFile.test.js +5 -5
  77. package/test/type.journey.test.js +26 -0
  78. package/test/type.query.test.js +2 -2
  79. package/test/type.script.test.js +1 -1
  80. /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-create.asset-block-meta.html → testExisting_asset_html-matchNamFail.asset-block-meta.html} +0 -0
  81. /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-fail.asset-block-meta.html → testExisting_asset_html-matchName.asset-block-meta.html} +0 -0
  82. /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName.asset-block-meta.html → testExisting_asset_html-matchNameAdd.asset-block-meta.html} +0 -0
@@ -0,0 +1,279 @@
1
+ import * as chai from 'chai';
2
+ const assert = chai.assert;
3
+
4
+ import chaiFiles from 'chai-files';
5
+ import cache from '../lib/util/cache.js';
6
+ import * as testUtils from './utils.js';
7
+ import handler from '../lib/index.js';
8
+ chai.use(chaiFiles);
9
+
10
+ describe('type: fileLocation', () => {
11
+ beforeEach(() => {
12
+ testUtils.mockSetup();
13
+ });
14
+
15
+ afterEach(() => {
16
+ testUtils.mockReset();
17
+ });
18
+
19
+ describe('Retrieve ================', () => {
20
+ it('Should retrieve a fileLocation', async () => {
21
+ // WHEN
22
+ await handler.retrieve('testInstance/testBU', ['fileLocation']);
23
+ // THEN
24
+ assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
25
+ // get results from cache
26
+ const result = cache.getCache();
27
+ assert.equal(
28
+ result.fileLocation ? Object.keys(result.fileLocation).length : 0,
29
+ 6,
30
+ 'unexpected number of fileLocations'
31
+ );
32
+ assert.deepEqual(
33
+ await testUtils.getActualJson('Salesforce Objects %26 Reports', 'fileLocation'),
34
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'get-sor'),
35
+ 'returned JSON was not equal expected'
36
+ );
37
+ assert.deepEqual(
38
+ await testUtils.getActualJson('ExactTarget Enhanced FTP', 'fileLocation'),
39
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'get-eftp'),
40
+ 'returned JSON was not equal expected'
41
+ );
42
+ assert.deepEqual(
43
+ await testUtils.getActualJson('testExisting_fileLocation_gcp', 'fileLocation'),
44
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'get-gcp'),
45
+ 'returned JSON was not equal expected'
46
+ );
47
+ assert.deepEqual(
48
+ await testUtils.getActualJson('testExisting_fileLocation_azure', 'fileLocation'),
49
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'get-azure'),
50
+ 'returned JSON was not equal expected'
51
+ );
52
+ assert.deepEqual(
53
+ await testUtils.getActualJson('testExisting_fileLocation_aws', 'fileLocation'),
54
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'get-aws'),
55
+ 'returned JSON was not equal expected'
56
+ );
57
+ assert.deepEqual(
58
+ await testUtils.getActualJson('testExisting_fileLocation_exsftp', 'fileLocation'),
59
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'get-exsftp'),
60
+ 'returned JSON was not equal expected'
61
+ );
62
+ assert.equal(
63
+ testUtils.getAPIHistoryLength(),
64
+ 2,
65
+ 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
66
+ );
67
+ return;
68
+ });
69
+
70
+ it('Should retrieve an old fileLocation by key', async () => {
71
+ // WHEN
72
+ await handler.retrieve(
73
+ 'testInstance/testBU',
74
+ ['fileLocation'],
75
+ ['Salesforce Objects & Reports']
76
+ );
77
+ // THEN
78
+ assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
79
+ // get results from cache
80
+ const result = cache.getCache();
81
+ assert.equal(
82
+ result.fileLocation ? Object.keys(result.fileLocation).length : 0,
83
+ 1,
84
+ 'unexpected number of fileLocations'
85
+ );
86
+ assert.deepEqual(
87
+ await testUtils.getActualJson('Salesforce Objects %26 Reports', 'fileLocation'),
88
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'get-sor'),
89
+ 'returned JSON was not equal expected'
90
+ );
91
+ assert.equal(
92
+ testUtils.getAPIHistoryLength(),
93
+ 2,
94
+ 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
95
+ );
96
+ return;
97
+ });
98
+
99
+ it('Should retrieve a new fileLocation by key', async () => {
100
+ // WHEN
101
+ await handler.retrieve(
102
+ 'testInstance/testBU',
103
+ ['fileLocation'],
104
+ ['testExisting_fileLocation_azure']
105
+ );
106
+ // THEN
107
+ assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
108
+ // get results from cache
109
+ const result = cache.getCache();
110
+ assert.equal(
111
+ result.fileLocation ? Object.keys(result.fileLocation).length : 0,
112
+ 1,
113
+ 'unexpected number of fileLocations'
114
+ );
115
+ assert.deepEqual(
116
+ await testUtils.getActualJson('testExisting_fileLocation_azure', 'fileLocation'),
117
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'get-azure'),
118
+ 'returned JSON was not equal expected'
119
+ );
120
+ assert.equal(
121
+ testUtils.getAPIHistoryLength(),
122
+ 2,
123
+ 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
124
+ );
125
+ return;
126
+ });
127
+ });
128
+
129
+ describe('Deploy ================', () => {
130
+ beforeEach(() => {
131
+ testUtils.mockSetup(true);
132
+ });
133
+
134
+ it('Should update fileLocations', async () => {
135
+ // WHEN
136
+ const deployed = await handler.deploy(
137
+ 'testInstance/testBU',
138
+ ['fileLocation'],
139
+ ['testExisting_fileLocation_exsftp', 'testExisting_fileLocation_aws']
140
+ );
141
+ // THEN
142
+ assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
143
+ // get results from cache
144
+ const result = cache.getCache();
145
+ assert.equal(
146
+ result.fileLocation ? Object.keys(result.fileLocation).length : 0,
147
+ 6,
148
+ 'unexpected number of fileLocations in cache'
149
+ );
150
+ assert.equal(
151
+ deployed?.['testInstance/testBU']?.fileLocation
152
+ ? Object.keys(deployed['testInstance/testBU'].fileLocation).length
153
+ : 0,
154
+ 2,
155
+ 'unexpected number of fileLocations deployed'
156
+ );
157
+ // confirm created item
158
+ // TODO
159
+
160
+ // confirm updated item
161
+ assert.deepEqual(
162
+ await testUtils.getActualJson('testExisting_fileLocation_exsftp', 'fileLocation'),
163
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'patch-exsftp'),
164
+ 'returned JSON was not equal expected for insert fileLocation'
165
+ );
166
+ // confirm updated item
167
+ assert.deepEqual(
168
+ await testUtils.getActualJson('testExisting_fileLocation_aws', 'fileLocation'),
169
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'patch-aws'),
170
+ 'returned JSON was not equal expected for update fileLocation'
171
+ );
172
+ // check number of API calls
173
+ assert.equal(
174
+ testUtils.getAPIHistoryLength(),
175
+ 4,
176
+ 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
177
+ );
178
+ return;
179
+ });
180
+
181
+ it('Should not update fileLocations', async () => {
182
+ // WHEN
183
+ const deployed = await handler.deploy(
184
+ 'testInstance/testBU',
185
+ ['fileLocation'],
186
+ ['ExactTarget Enhanced FTP']
187
+ );
188
+ // THEN
189
+ assert.equal(process.exitCode, 1, 'deploy should have thrown an error');
190
+ // get results from cache
191
+ const result = cache.getCache();
192
+ assert.equal(
193
+ result.fileLocation ? Object.keys(result.fileLocation).length : 0,
194
+ 6,
195
+ 'unexpected number of fileLocations in cache'
196
+ );
197
+ assert.equal(
198
+ deployed?.['testInstance/testBU']?.fileLocation
199
+ ? Object.keys(deployed['testInstance/testBU'].fileLocation).length
200
+ : 0,
201
+ 0,
202
+ 'unexpected number of fileLocations deployed'
203
+ );
204
+
205
+ // check number of API calls
206
+ assert.equal(
207
+ testUtils.getAPIHistoryLength(),
208
+ 2,
209
+ 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
210
+ );
211
+ return;
212
+ });
213
+ });
214
+
215
+ describe('Templating ================', () => {
216
+ it('Should create a fileLocation template via buildTemplate and build it', async () => {
217
+ // download first before we test buildTemplate
218
+ await handler.retrieve('testInstance/testBU', ['fileLocation']);
219
+ // buildTemplate
220
+ const result = await handler.buildTemplate(
221
+ 'testInstance/testBU',
222
+ 'fileLocation',
223
+ ['testExisting_fileLocation_azure'],
224
+ ['testSourceMarket']
225
+ );
226
+ assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
227
+ assert.equal(
228
+ result.fileLocation ? Object.keys(result.fileLocation).length : 0,
229
+ 1,
230
+ 'only one fileLocation expected'
231
+ );
232
+ assert.deepEqual(
233
+ await testUtils.getActualTemplateJson(
234
+ 'testExisting_fileLocation_azure',
235
+ 'fileLocation'
236
+ ),
237
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'template'),
238
+ 'returned template JSON was not equal expected'
239
+ );
240
+ // buildDefinition
241
+ await handler.buildDefinition(
242
+ 'testInstance/testBU',
243
+ 'fileLocation',
244
+ ['testExisting_fileLocation_azure'],
245
+ ['testTargetMarket']
246
+ );
247
+ assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
248
+ assert.deepEqual(
249
+ await testUtils.getActualDeployJson(
250
+ 'testTemplated_fileLocation_azure',
251
+ 'fileLocation'
252
+ ),
253
+ await testUtils.getExpectedJson('9999999', 'fileLocation', 'build'),
254
+ 'returned deployment JSON was not equal expected'
255
+ );
256
+ assert.equal(
257
+ testUtils.getAPIHistoryLength(),
258
+ 2,
259
+ 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
260
+ );
261
+ return;
262
+ });
263
+ });
264
+
265
+ describe('Delete ================', () => {
266
+ it('Should delete the item', async () => {
267
+ // WHEN
268
+ const isDeleted = await handler.deleteByKey(
269
+ 'testInstance/testBU',
270
+ 'fileLocation',
271
+ 'testExisting_fileLocation_azure'
272
+ );
273
+ // THEN
274
+ assert.equal(process.exitCode, 0, 'deleteByKey should not have thrown an error');
275
+ assert.equal(isDeleted, true, 'deleteByKey should have returned true');
276
+ return;
277
+ });
278
+ });
279
+ });
@@ -36,7 +36,7 @@ describe('type: fileTransfer', () => {
36
36
  );
37
37
  assert.equal(
38
38
  testUtils.getAPIHistoryLength(),
39
- 3,
39
+ 4,
40
40
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
41
41
  );
42
42
  return;
@@ -75,7 +75,7 @@ describe('type: fileTransfer', () => {
75
75
  // check number of API calls
76
76
  assert.equal(
77
77
  testUtils.getAPIHistoryLength(),
78
- 5,
78
+ 6,
79
79
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
80
80
  );
81
81
  return;
@@ -117,7 +117,7 @@ describe('type: fileTransfer', () => {
117
117
  );
118
118
  assert.equal(
119
119
  testUtils.getAPIHistoryLength(),
120
- 3,
120
+ 4,
121
121
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
122
122
  );
123
123
  return;
@@ -159,7 +159,7 @@ describe('type: fileTransfer', () => {
159
159
  );
160
160
  assert.equal(
161
161
  testUtils.getAPIHistoryLength(),
162
- 3,
162
+ 4,
163
163
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
164
164
  );
165
165
  return;
@@ -77,7 +77,7 @@ describe('type: filter', () => {
77
77
  it('Should create & upsert a filter', async () => {
78
78
  // WHEN
79
79
 
80
- await handler.deploy('testInstance/testBU', ['filter']);
80
+ const deployed = await handler.deploy('testInstance/testBU', ['filter']);
81
81
  // THEN
82
82
  assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
83
83
  // get results from cache
@@ -85,7 +85,14 @@ describe('type: filter', () => {
85
85
  assert.equal(
86
86
  result.filter ? Object.keys(result.filter).length : 0,
87
87
  2,
88
- 'unexptected number of filters in cache'
88
+ 'unexpected number of filters in cache'
89
+ );
90
+ assert.equal(
91
+ deployed?.['testInstance/testBU']?.filter
92
+ ? Object.keys(deployed['testInstance/testBU'].filter).length
93
+ : 0,
94
+ 2,
95
+ 'unexpected number of filters deployed'
89
96
  );
90
97
  // confirm created item
91
98
  assert.deepEqual(
@@ -46,7 +46,7 @@ describe('type: importFile', () => {
46
46
  );
47
47
  assert.equal(
48
48
  testUtils.getAPIHistoryLength(),
49
- 15,
49
+ 16,
50
50
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
51
51
  );
52
52
  return;
@@ -75,7 +75,7 @@ describe('type: importFile', () => {
75
75
  );
76
76
  assert.equal(
77
77
  testUtils.getAPIHistoryLength(),
78
- 13,
78
+ 14,
79
79
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
80
80
  );
81
81
  return;
@@ -115,7 +115,7 @@ describe('type: importFile', () => {
115
115
  // check number of API calls
116
116
  assert.equal(
117
117
  testUtils.getAPIHistoryLength(),
118
- 17,
118
+ 18,
119
119
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
120
120
  );
121
121
  return;
@@ -157,7 +157,7 @@ describe('type: importFile', () => {
157
157
  );
158
158
  assert.equal(
159
159
  testUtils.getAPIHistoryLength(),
160
- 13,
160
+ 14,
161
161
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
162
162
  );
163
163
  return;
@@ -199,7 +199,7 @@ describe('type: importFile', () => {
199
199
  );
200
200
  assert.equal(
201
201
  testUtils.getAPIHistoryLength(),
202
- 15,
202
+ 16,
203
203
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
204
204
  );
205
205
  return;
@@ -52,6 +52,32 @@ describe('type: journey', () => {
52
52
  return;
53
53
  });
54
54
 
55
+ it('Should retrieve only published journeys', async () => {
56
+ handler.setOptions({ onlyPublished: true });
57
+ // WHEN
58
+ await handler.retrieve('testInstance/testBU', ['journey']);
59
+ // THEN
60
+ assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
61
+ // get results from cache
62
+ const result = cache.getCache();
63
+ assert.equal(
64
+ result.journey ? Object.keys(result.journey).length : 0,
65
+ 1,
66
+ 'unexpected number of journeys'
67
+ );
68
+ assert.deepEqual(
69
+ await testUtils.getActualJson('testExisting_temail', 'journey'),
70
+ await testUtils.getExpectedJson('9999999', 'journey', 'get-transactionalEmail'),
71
+ 'returned JSON was not equal expected'
72
+ );
73
+ assert.equal(
74
+ testUtils.getAPIHistoryLength(),
75
+ 24,
76
+ 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
77
+ );
78
+ return;
79
+ });
80
+
55
81
  it('Should retrieve a Quicksend journey with key', async () => {
56
82
  // WHEN
57
83
  await handler.retrieve(
@@ -648,7 +648,7 @@ describe('type: query', () => {
648
648
  // check number of API calls
649
649
  assert.equal(
650
650
  testUtils.getAPIHistoryLength(),
651
- 47,
651
+ 48,
652
652
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
653
653
  );
654
654
  return;
@@ -690,7 +690,7 @@ describe('type: query', () => {
690
690
  // check number of API calls
691
691
  assert.equal(
692
692
  testUtils.getAPIHistoryLength(),
693
- 49,
693
+ 50,
694
694
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
695
695
  );
696
696
  return;
@@ -261,7 +261,7 @@ describe('type: script', () => {
261
261
  // check number of API calls
262
262
  assert.equal(
263
263
  testUtils.getAPIHistoryLength(),
264
- 4,
264
+ 5,
265
265
  'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
266
266
  );
267
267
  return;