From aea17a10772070ed0455574051250057c1c2ba99 Mon Sep 17 00:00:00 2001 From: I560824 Date: Tue, 29 Oct 2024 11:29:09 +0800 Subject: [PATCH] Revert unit test of service api. --- tests/integration/service-api.test.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/integration/service-api.test.js b/tests/integration/service-api.test.js index 8f7a6df..b5d326f 100644 --- a/tests/integration/service-api.test.js +++ b/tests/integration/service-api.test.js @@ -143,10 +143,9 @@ describe("change log integration test", () => { }, ], }; - await INSERT.into(adminService.entities.BookStores).entries(bookStoreData); - // REVISIT: CAP currently does not support run queries on the draft-enabled entity on application service (details in CAP/Issue#16292) - // await adminService.run(INSERT.into(adminService.entities.BookStores).entries(bookStoreData)); + // CAP currently support run queries on the draft-enabled entity on application service, so we can re-enable it. (details in CAP/Issue#16292) + await adminService.run(INSERT.into(adminService.entities.BookStores).entries(bookStoreData)); let changes = await SELECT.from(ChangeView).where({ entity: "sap.capire.bookshop.BookStores", @@ -432,10 +431,9 @@ describe("change log integration test", () => { validOn: "2022-01-01", }, }; - await INSERT.into(adminService.entities.BookStores).entries(bookStoreData); - // REVISIT: CAP currently does not support run queries on the draft-enabled entity on application service (details in CAP/Issue#16292) - // await adminService.run(INSERT.into(adminService.entities.BookStores).entries(bookStoreData)); + // CAP currently support run queries on the draft-enabled entity on application service, so we can re-enable it. (details in CAP/Issue#16292) + await adminService.run(INSERT.into(adminService.entities.BookStores).entries(bookStoreData)); let changes = await SELECT.from(ChangeView).where({ entity: "sap.capire.bookshop.BookStoreRegistry",