From 29af34250cdc308a5298553f5ee9bbb9daf182cb Mon Sep 17 00:00:00 2001 From: Lyr-7D1h Date: Mon, 19 Jul 2021 14:06:27 +0200 Subject: [PATCH] fix: broken pact provider test not consistent with types --- .../test/pact/pact-provider-config-options.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/nestjs-provider/test/pact/pact-provider-config-options.service.ts b/examples/nestjs-provider/test/pact/pact-provider-config-options.service.ts index 6c0623e7f..596fc1fb9 100644 --- a/examples/nestjs-provider/test/pact/pact-provider-config-options.service.ts +++ b/examples/nestjs-provider/test/pact/pact-provider-config-options.service.ts @@ -28,24 +28,24 @@ export class PactProviderConfigOptionsService this.animalRepository.clear(); token = '1234'; - return 'Animals removed to the db'; + return { description: 'Animals removed to the db' }; }, 'Has some animals': async () => { token = '1234'; this.animalRepository.importData(); - return 'Animals added to the db'; + return { description: 'Animals added to the db' }; }, 'Has an animal with ID 1': async () => { token = '1234'; this.animalRepository.importData(); - return 'Animals added to the db'; + return { description: 'Animals added to the db' }; }, 'is not authenticated': async () => { token = ''; - return 'Invalid bearer token generated'; + return { description: 'Invalid bearer token generated' }; }, },