From 1b03b2d35752529f1d77ce418ad2bb9c73e4b915 Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Wed, 23 Jun 2021 14:05:10 +1000 Subject: [PATCH] fix: fromProviderState should accept any valid JSON. Fixes #696 --- src/v3/matchers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v3/matchers.ts b/src/v3/matchers.ts index 13378a4f7..6c415c53b 100644 --- a/src/v3/matchers.ts +++ b/src/v3/matchers.ts @@ -436,18 +436,18 @@ export function arrayContaining( }; } -export interface ProviderStateInjectedValue extends Matcher { +export interface ProviderStateInjectedValue extends Matcher { expression: string; } /** - * Marks a item as to be injected from the provider state + * Marks an item to be injected from the provider state * @param expression Expression to lookup in the provider state context * @param exampleValue Example value to use in the consumer test */ export function fromProviderState( expression: string, - exampleValue: string + exampleValue: AnyJson ): ProviderStateInjectedValue { return { 'pact:matcher:type': 'type',