Skip to content

Commit 8221799

Browse files
committed
fix: rename default values tests for consistency and ease of support
1 parent 3c42d22 commit 8221799

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -632,39 +632,39 @@ describe('Openapi3 Operation Parameters', () => {
632632
})
633633

634634
describe('Add/remove default values', () => {
635-
636-
test('Explicitly mark parameter as not required (default)', async () => {
637-
const testId = 'explicitly-mark-parameter-as-not-required-default'
635+
636+
test('Add required attribute with default value for parameter', async () => {
637+
const testId = 'add-required-attribute-with-default-value-for-parameter'
638638
const result = await compareFiles(SUITE_ID, testId)
639639
expect(result).toEqual([])
640640
})
641641

642-
test('Remove required attribute with default value', async () => {
643-
const testId = 'remove-required-attribute-with-default-value'
642+
test('Remove required attribute with default value from parameter', async () => {
643+
const testId = 'remove-required-attribute-with-default-value-from-parameter'
644644
const result = await compareFiles(SUITE_ID, testId)
645645
expect(result).toEqual([])
646646
})
647647

648-
test('Explicitly mark parameter as not deprecated (default)', async () => {
649-
const testId = 'explicitly-mark-parameter-as-not-deprecated-default'
648+
test('Add deprecated attribute with default value for parameter', async () => {
649+
const testId = 'add-deprecated-attribute-with-default-value-for-parameter'
650650
const result = await compareFiles(SUITE_ID, testId)
651651
expect(result).toEqual([])
652652
})
653653

654-
test('Remove deprecated attribute with default value', async () => {
655-
const testId = 'remove-deprecated-attribute-with-default-value'
654+
test('Remove deprecated attribute with default value from parameter', async () => {
655+
const testId = 'remove-deprecated-attribute-with-default-value-from-parameter'
656656
const result = await compareFiles(SUITE_ID, testId)
657657
expect(result).toEqual([])
658658
})
659659

660-
test('Explicitly prohibit empty value (default)', async () => {
661-
const testId = 'explicitly-prohibit-empty-value-default'
660+
test('Add allowEmptyValue attribute with default value for parameter', async () => {
661+
const testId = 'add-allowEmptyValue-attribute-with-default-value-for-parameter'
662662
const result = await compareFiles(SUITE_ID, testId)
663663
expect(result).toEqual([])
664664
})
665665

666-
test('Remove allowEmptyValue attribute with default value', async () => {
667-
const testId = 'remove-allowEmptyValue-attribute-with-default-value'
666+
test('Remove allowEmptyValue attribute with default value from parameter', async () => {
667+
const testId = 'remove-allowEmptyValue-attribute-with-default-value-from-parameter'
668668
const result = await compareFiles(SUITE_ID, testId)
669669
expect(result).toEqual([])
670670
})
@@ -717,14 +717,14 @@ describe('Openapi3 Operation Parameters', () => {
717717
expect(result).toEqual([])
718718
})
719719

720-
test('Explicitly prohibit reserved characters for query parameter (default)', async () => {
721-
const testId = 'explicitly-prohibit-reserved-characters-for-query-parameter-default'
720+
test('Add allowReserved attribute with default value for query parameter', async () => {
721+
const testId = 'add-allowReserved-attribute-with-default-value-for-query-parameter'
722722
const result = await compareFiles(SUITE_ID, testId)
723723
expect(result).toEqual([])
724724
})
725725

726-
test('Remove allowReserved attribute with default value', async () => {
727-
const testId = 'remove-allowReserved-attribute-with-default-value'
726+
test('Remove allowReserved attribute with default value from query parameter', async () => {
727+
const testId = 'remove-allowReserved-attribute-with-default-value-from-query-parameter'
728728
const result = await compareFiles(SUITE_ID, testId)
729729
expect(result).toEqual([])
730730
})

0 commit comments

Comments
 (0)