Skip to content

Commit 0ac128b

Browse files
#2439: adapt test cases to re-retrieving updated scripts
1 parent b491e53 commit 0ac128b

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"ssjsActivityId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
3+
"name": "testExisting_script",
4+
"key": "testExisting_script",
5+
"description": "updated on deploy",
6+
"script": "<script runat=\"server\">\n// dummy updated\n</script>",
7+
"categoryId": 304,
8+
"createdDate": "2022-10-20T00:41:26.163",
9+
"modifiedDate": "2022-10-20T00:41:26.163"
10+
}

test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"description": "updated on deploy",
66
"script": "<script runat=\"server\">\n// dummy updated\n</script>",
77
"categoryId": 304,
8-
"createdDate": "2022-10-20T00:41:26.163",
9-
"modifiedDate": "2022-10-20T00:41:26.163"
8+
"createdDate": "0001-01-01T00:00:00",
9+
"modifiedDate": "0001-01-01T00:00:00"
1010
}

test/type.script.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe('type: script', () => {
261261
// check number of API calls
262262
assert.equal(
263263
testUtils.getAPIHistoryLength(),
264-
4,
264+
5,
265265
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
266266
);
267267
return;

0 commit comments

Comments
 (0)