Skip to content

Commit 3c42d22

Browse files
committed
fix: remove tests that duplicate style default tests and have obsolete ER now that defaults for style are supported
1 parent bf89021 commit 3c42d22

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

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

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -326,18 +326,6 @@ describe('Openapi3 Operation Parameters', () => {
326326
))
327327
})
328328

329-
test('Add style simple for path parameter', async () => {
330-
const testId = 'add-style-simple-for-path-parameter'
331-
const result = await compareFiles(SUITE_ID, testId)
332-
expect(result).toEqual(diffsMatcher([
333-
expect.objectContaining({
334-
action: DiffAction.add,
335-
afterDeclarationPaths: [['paths', '/path1/{param1}', 'get', 'parameters', 0, 'style']],
336-
type: nonBreaking,
337-
}),
338-
]))
339-
})
340-
341329
test('Update style for path parameter', async () => {
342330
const testId = 'update-style-for-path-parameter'
343331
const result = await compareFiles(SUITE_ID, testId)
@@ -350,42 +338,7 @@ describe('Openapi3 Operation Parameters', () => {
350338
}),
351339
]))
352340
})
353-
354-
test('Add style form for query parameter', async () => {
355-
const testId = 'add-style-form-for-query-parameter'
356-
const result = await compareFiles(SUITE_ID, testId)
357-
expect(result).toEqual(diffsMatcher([
358-
expect.objectContaining({
359-
action: DiffAction.add,
360-
afterDeclarationPaths: [[...OPERATION_PARAMETERS_PATH, 0, 'style']],
361-
type: nonBreaking,
362-
}),
363-
]))
364-
})
365-
366-
test('Add style simple for header parameter', async () => {
367-
const testId = 'add-style-simple-for-header-parameter'
368-
const result = await compareFiles(SUITE_ID, testId)
369-
expect(result).toEqual(diffsMatcher([
370-
expect.objectContaining({
371-
action: DiffAction.add,
372-
afterDeclarationPaths: [[...OPERATION_PARAMETERS_PATH, 0, 'style']],
373-
type: nonBreaking,
374-
}),
375-
]))
376-
})
377-
378-
test('Add style form for cookie parameter', async () => {
379-
const testId = 'add-style-form-for-cookie-parameter'
380-
const result = await compareFiles(SUITE_ID, testId)
381-
expect(result).toEqual(diffsMatcher([
382-
expect.objectContaining({
383-
action: DiffAction.add,
384-
afterDeclarationPaths: [[...OPERATION_PARAMETERS_PATH, 0, 'style']],
385-
type: nonBreaking,
386-
}),
387-
]))
388-
})
341+
389342

390343
// TODO: fixme
391344
test.skip('Mark primitive parameter as exploded', async () => {

0 commit comments

Comments
 (0)