Skip to content

Commit 669b57c

Browse files
mariayordsjvans
andauthored
chore: Remove workaround for cds9, req.diff fixed (#169)
Co-authored-by: sjvans <30337871+sjvans@users.noreply.github.com>
1 parent 0deee04 commit 669b57c

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

test/personal-data/crud.test.js

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -863,13 +863,6 @@ describe('personal data audit logging in CRUD', () => {
863863
}
864864
}
865865

866-
// REVISIT: cds^9 does not replace unmentioned assocs with empty arrays
867-
if (cds.version.split('.')[0] >= 9) {
868-
customer.addresses[0].attachments = []
869-
customer.addresses[1].attachments = []
870-
customer.status.notes = []
871-
}
872-
873866
response = await PATCH(`/crud-1/Customers(${CUSTOMER_ID})`, customer, { auth: ALICE })
874867
expect(response).toMatchObject({ status: 200 })
875868

@@ -1061,16 +1054,11 @@ describe('personal data audit logging in CRUD', () => {
10611054
id: { ID: oldAttachments[1].ID }
10621055
},
10631056
data_subject: DATA_SUBJECT,
1064-
attributes:
1065-
cds.version.split('.')[0] < 9
1066-
? [
1067-
{ name: 'description', old: '***' },
1068-
{ name: 'todo', old: oldAttachments[1].todo }
1069-
]
1070-
: [
1071-
{ name: 'description', old: '***' }
1072-
// REVISIT: entry for "todo" missing in cds^9
1073-
]
1057+
attributes: [
1058+
{ name: 'description', old: '***' },
1059+
{ name: 'todo', old: oldAttachments[1].todo }
1060+
]
1061+
10741062
})
10751063
expect(_logs).toContainMatchObject({
10761064
user: 'alice',

0 commit comments

Comments
 (0)