Skip to content

Commit 5ee5a96

Browse files
committed
feat: Fixed tests paths
1 parent 62e9d0f commit 5ee5a96

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

test/compatibility-suites/openapi/headers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { runRefObjectDescriptionTests } from './templates/reference-object-31.template'
22

33
const SUITE_ID = 'headers'
4-
const PATH_TO_HEADER_DESCRIPTION = ['paths', '/path1', 'get', 'responses', '200', 'headers', 'X-Rate-Limit']
4+
const PATH_TO_HEADER_DESCRIPTION = ['paths', '/path1', 'get', 'responses', '200', 'headers', 'X-Rate-Limit', 'description']
55
const PATH_TO_COMPONENT_DESCRIPTION = ['components', 'headers', 'X-Rate-Limit', 'description']
66

77
describe('Reference object. Headers. Description fields in ref object', () => {

test/compatibility-suites/openapi/operation-parameters.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,5 +727,5 @@ describe('Openapi3 Operation Parameters', () => {
727727

728728
const PATH_TO_COMPONENT_DESCRIPTION = ['components', 'parameters', 'status', 'description']
729729
describe('Reference object. Operation parameters. Description fields in ref object', () => {
730-
runRefObjectDescriptionTests(SUITE_ID, [...OPERATION_PARAMETERS_PATH, 0], PATH_TO_COMPONENT_DESCRIPTION)
730+
runRefObjectDescriptionTests(SUITE_ID, [...OPERATION_PARAMETERS_PATH, 0, 'description'], PATH_TO_COMPONENT_DESCRIPTION)
731731
})

test/compatibility-suites/openapi/parameters-examples.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ describe('Openapi3 Parameters Examples', () => {
165165

166166
const PATH_TO_COMPONENTS = ['components', 'examples', 'ex1']
167167
describe('Reference object. Parameters examples. Description and Summary fields in ref object', () => {
168-
runRefObjectDescriptionTests(SUITE_ID, [...PARAMETERS_EXAMPLES_PATH, 'ex1'], [...PATH_TO_COMPONENTS, 'description'])
169-
runRefObjectSummaryTests(SUITE_ID, [...PARAMETERS_EXAMPLES_PATH, 'ex1'], [...PATH_TO_COMPONENTS, 'summary'])
168+
runRefObjectDescriptionTests(SUITE_ID, [...PARAMETERS_EXAMPLES_PATH, 'ex1', 'description'], [...PATH_TO_COMPONENTS, 'description'])
169+
runRefObjectSummaryTests(SUITE_ID, [...PARAMETERS_EXAMPLES_PATH, 'ex1', 'summary'], [...PATH_TO_COMPONENTS, 'summary'])
170170
})
171171

test/compatibility-suites/openapi/request-body-examples.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,5 @@ describe('Openapi3 Request Body Examples', () => {
166166
const PATH_TO_COMPONENTS_DESCRIPTION = ['components', 'examples', 'ex1', 'description']
167167

168168
describe('Reference object. Request body examples. Description fields in ref object', () => {
169-
runRefObjectDescriptionTests(SUITE_ID, [...REQUEST_BODY_PATH, 'ex1'], PATH_TO_COMPONENTS_DESCRIPTION)
169+
runRefObjectDescriptionTests(SUITE_ID, [...REQUEST_BODY_PATH, 'ex1', 'description'], PATH_TO_COMPONENTS_DESCRIPTION)
170170
})

test/compatibility-suites/openapi/request-body.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { runRefObjectDescriptionTests } from './templates/reference-object-31.template'
22

33
const SUITE_ID = 'request-body'
4-
const PATH_TO_HEADER_DESCRIPTION = ['paths', '/path1', 'post', 'requestBody']
4+
const PATH_TO_HEADER_DESCRIPTION = ['paths', '/path1', 'post', 'requestBody', 'description']
55
const PATH_TO_COMPONENTS_DESCRIPTION = ['components', 'requestBodies', 'rb1', 'description']
66

77
describe('Reference object. Request body. Description fields in ref object', () => {

test/compatibility-suites/openapi/response-body-examples.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,5 @@ describe('Openapi3 Response Body Examples', () => {
165165

166166
const PATH_TO_COMPONENTS_DESCRIPTION = ['components', 'examples', 'ex1', 'description']
167167
describe('Reference object. Response body examples. Description fields in ref object', () => {
168-
runRefObjectDescriptionTests(SUITE_ID, [...COMMON_PATH, 'ex1'], PATH_TO_COMPONENTS_DESCRIPTION)
168+
runRefObjectDescriptionTests(SUITE_ID, [...COMMON_PATH, 'ex1', 'description'], PATH_TO_COMPONENTS_DESCRIPTION)
169169
})

test/compatibility-suites/openapi/response.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,5 @@ describe('Openapi3 Response', () => {
257257
const RESPONSES_POST_PATH = ['paths', '/path1', 'post', 'responses']
258258
const PATH_TO_COMPONENTS_DESCRIPTION = ['components', 'responses', 'response200', 'description']
259259
describe('Reference object. Response. Description fields in ref object', () => {
260-
runRefObjectDescriptionTests(SUITE_ID, [...RESPONSES_POST_PATH, '200'], PATH_TO_COMPONENTS_DESCRIPTION)
260+
runRefObjectDescriptionTests(SUITE_ID, [...RESPONSES_POST_PATH, '200', 'description'], PATH_TO_COMPONENTS_DESCRIPTION)
261261
})

0 commit comments

Comments
 (0)