Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 4d9b400

Browse files
committed
test: check that library don't fail when license and contact are empty objects
1 parent 24425d4 commit 4d9b400

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/index.spec.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,17 @@ describe('Library specs', function () {
210210
equal(result, EXPECTED_LICENSE_CONTACT_PARTIAL_2)
211211
})
212212

213+
it('should not fail if license and/or contact are empty', async function () {
214+
const result = await postmanToOpenApi(COLLECTION_BASIC, OUTPUT_PATH,
215+
{
216+
info: {
217+
license: {},
218+
contact: {}
219+
}
220+
})
221+
equal(result, EXPECTED_BASIC)
222+
})
223+
213224
it('should use depth configuration for parse paths', async function () {
214225
const result = await postmanToOpenApi(COLLECTION_DEPTH_PATH_PARAMS, OUTPUT_PATH, { pathDepth: 1 })
215226
equal(result, EXPECTED_DEPTH_PATH_PARAMS)

0 commit comments

Comments
 (0)