Skip to content

Commit d5ca8d6

Browse files
committed
chore: Renaming
1 parent 2c023aa commit d5ca8d6

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,8 +1641,8 @@ const RESPONSE_SCHEMA31_PATH = [
16411641
]
16421642

16431643
describe('Openapi31 ResponseBody.Schema ', () => {
1644-
test('Add second type', async () => {
1645-
const testId = 'add-second-type'
1644+
test('Add union type', async () => {
1645+
const testId = 'add-union-type'
16461646
const result = await compareFiles(SUITE_ID, testId)
16471647
expect(result).toEqual(diffsMatcher([
16481648
expect.objectContaining({
@@ -1653,8 +1653,8 @@ describe('Openapi31 ResponseBody.Schema ', () => {
16531653
]))
16541654
})
16551655

1656-
test('Add third type', async () => {
1657-
const testId = 'add-third-type'
1656+
test('Add null to union type', async () => {
1657+
const testId = 'add-null-to-union-type'
16581658
const result = await compareFiles(SUITE_ID, testId)
16591659
expect(result).toEqual(diffsMatcher([
16601660
expect.objectContaining({
@@ -1665,8 +1665,8 @@ describe('Openapi31 ResponseBody.Schema ', () => {
16651665
]))
16661666
})
16671667

1668-
test('Remove second type', async () => {
1669-
const testId = 'remove-second-type'
1668+
test('Remove union type', async () => {
1669+
const testId = 'remove-union-type'
16701670
const result = await compareFiles(SUITE_ID, testId)
16711671
expect(result).toEqual(diffsMatcher([
16721672
expect.objectContaining({
@@ -1677,8 +1677,8 @@ describe('Openapi31 ResponseBody.Schema ', () => {
16771677
]))
16781678
})
16791679

1680-
test('Remove third type', async () => {
1681-
const testId = 'remove-third-type'
1680+
test('Remove null from union type', async () => {
1681+
const testId = 'remove-null-from-union-type'
16821682
const result = await compareFiles(SUITE_ID, testId)
16831683
expect(result).toEqual(diffsMatcher([
16841684
expect.objectContaining({
@@ -1689,8 +1689,8 @@ describe('Openapi31 ResponseBody.Schema ', () => {
16891689
]))
16901690
})
16911691

1692-
test('Reorder types', async () => {
1693-
const testId = 'reorder-types'
1692+
test('Reorder types in union type', async () => {
1693+
const testId = 'reorder-types-in-union-type'
16941694
const result = await compareFiles(SUITE_ID, testId)
16951695
expect(result.length).toEqual(0)
16961696
})

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const RESPONSE_SCHEMA31_PATH = [
1616
]
1717

1818
describe('Openapi31 ResponseHeaders.Schema ', () => {
19-
test('Add second type', async () => {
20-
const testId = 'add-second-type'
19+
test('Add union type', async () => {
20+
const testId = 'add-union-type'
2121
const result = await compareFiles(SUITE_ID, testId)
2222
expect(result).toEqual(diffsMatcher([
2323
expect.objectContaining({
@@ -28,8 +28,8 @@ describe('Openapi31 ResponseHeaders.Schema ', () => {
2828
]))
2929
})
3030

31-
test('Add third type', async () => {
32-
const testId = 'add-third-type'
31+
test('Add null to union type', async () => {
32+
const testId = 'add-null-to-union-type'
3333
const result = await compareFiles(SUITE_ID, testId)
3434
expect(result).toEqual(diffsMatcher([
3535
expect.objectContaining({
@@ -40,8 +40,8 @@ describe('Openapi31 ResponseHeaders.Schema ', () => {
4040
]))
4141
})
4242

43-
test('Remove second type', async () => {
44-
const testId = 'remove-second-type'
43+
test('Remove union type', async () => {
44+
const testId = 'remove-union-type'
4545
const result = await compareFiles(SUITE_ID, testId)
4646
expect(result).toEqual(diffsMatcher([
4747
expect.objectContaining({
@@ -52,8 +52,8 @@ describe('Openapi31 ResponseHeaders.Schema ', () => {
5252
]))
5353
})
5454

55-
test('Remove third type', async () => {
56-
const testId = 'remove-third-type'
55+
test('Remove null from union type', async () => {
56+
const testId = 'remove-null-from-union-type'
5757
const result = await compareFiles(SUITE_ID, testId)
5858
expect(result).toEqual(diffsMatcher([
5959
expect.objectContaining({
@@ -64,8 +64,8 @@ describe('Openapi31 ResponseHeaders.Schema ', () => {
6464
]))
6565
})
6666

67-
test('Reorder types', async () => {
68-
const testId = 'reorder-types'
67+
test('Reorder types in union type', async () => {
68+
const testId = 'reorder-types-in-union-type'
6969
const result = await compareFiles(SUITE_ID, testId)
7070
expect(result.length).toEqual(0)
7171
})

test/compatibility-suites/openapi/templates/schema31.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { breaking, DiffAction, nonBreaking } from '../../../../src'
44
import { diffsMatcher } from '../../../helper/matchers'
55

66
export function runCommonSchema31Tests(suiteId: string, commonPath: JsonPath): void {
7-
test('Add second type', async () => {
8-
const testId = 'add-second-type'
7+
test('Add union type', async () => {
8+
const testId = 'add-union-type'
99
const result = await compareFiles(suiteId, testId)
1010
expect(result).toEqual(diffsMatcher([
1111
expect.objectContaining({
@@ -16,8 +16,8 @@ export function runCommonSchema31Tests(suiteId: string, commonPath: JsonPath): v
1616
]))
1717
})
1818

19-
test('Add third type', async () => {
20-
const testId = 'add-third-type'
19+
test('Add null to union type', async () => {
20+
const testId = 'add-null-to-union-type'
2121
const result = await compareFiles(suiteId, testId)
2222
expect(result).toEqual(diffsMatcher([
2323
expect.objectContaining({
@@ -28,8 +28,8 @@ export function runCommonSchema31Tests(suiteId: string, commonPath: JsonPath): v
2828
]))
2929
})
3030

31-
test('Remove second type', async () => {
32-
const testId = 'remove-second-type'
31+
test('Remove union type', async () => {
32+
const testId = 'remove-union-type'
3333
const result = await compareFiles(suiteId, testId)
3434
expect(result).toEqual(diffsMatcher([
3535
expect.objectContaining({
@@ -40,8 +40,8 @@ export function runCommonSchema31Tests(suiteId: string, commonPath: JsonPath): v
4040
]))
4141
})
4242

43-
test('Remove third type', async () => {
44-
const testId = 'remove-third-type'
43+
test('Remove null from union type', async () => {
44+
const testId = 'remove-null-from-union-type'
4545
const result = await compareFiles(suiteId, testId)
4646
expect(result).toEqual(diffsMatcher([
4747
expect.objectContaining({
@@ -52,8 +52,8 @@ export function runCommonSchema31Tests(suiteId: string, commonPath: JsonPath): v
5252
]))
5353
})
5454

55-
test('Reorder types', async () => {
56-
const testId = 'reorder-types'
55+
test('Reorder types in union type', async () => {
56+
const testId = 'reorder-types-in-union-type'
5757
const result = await compareFiles(suiteId, testId)
5858
expect(result.length).toEqual(0)
5959
})

0 commit comments

Comments
 (0)