From 9c88a637b748c17e247eebc951e849f9b139febd Mon Sep 17 00:00:00 2001 From: quobix Date: Wed, 2 Oct 2024 08:56:43 -0400 Subject: [PATCH] updated validator message --- mock/mock_engine_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mock/mock_engine_test.go b/mock/mock_engine_test.go index f5c0e04..917bde2 100644 --- a/mock/mock_engine_test.go +++ b/mock/mock_engine_test.go @@ -326,10 +326,7 @@ func TestNewMockEngine_BuildResponse_MissingOperation_404(t *testing.T) { _ = json.Unmarshal(b, &decoded) assert.Equal(t, "Path / operation not found (404)", decoded["title"]) - assert.Equal(t, "Unable to locate the path '/wiretap/giftshop/products' with the method 'PATCH'. "+ - "Error: PATCH Path '/wiretap/giftshop/products' not found, Reason: The PATCH request contains a path of "+ - "'/wiretap/giftshop/products' however that path, or the PATCH method for that path does not exist in the "+ - "specification", decoded["detail"]) + assert.Equal(t, "Unable to locate the path '/wiretap/giftshop/products' with the method 'PATCH'. Error: PATCH Path '/wiretap/giftshop/products' not found, Reason: The PATCH method for that path does not exist in the specification", decoded["detail"]) } func TestNewMockEngine_BuildResponse_CreateProduct_NoSecurity_Invalid(t *testing.T) {