diff --git a/packages/catalog-process/test/updateEServiceName.test.ts b/packages/catalog-process/test/updateEServiceName.test.ts index 5105d83b6e..cbe28d2e8e 100644 --- a/packages/catalog-process/test/updateEServiceName.test.ts +++ b/packages/catalog-process/test/updateEServiceName.test.ts @@ -171,10 +171,7 @@ describe("update eService name on published eservice", () => { ).rejects.toThrowError(eserviceWithoutValidDescriptors(eservice.id)); }); it("should throw eserviceWithoutValidDescriptors if the eservice has only a draft descriptor", async () => { - const descriptor: Descriptor = { - ...getMockDescriptor(descriptorState.draft), - interface: getMockDocument(), - }; + const descriptor = getMockDescriptor(descriptorState.draft); const eservice: EService = { ...getMockEService(), descriptors: [descriptor],