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

Commit

Permalink
test: check that library don't fail when license and contact are empt…
Browse files Browse the repository at this point in the history
…y objects
  • Loading branch information
joolfe committed May 16, 2021
1 parent 24425d4 commit 4d9b400
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@ describe('Library specs', function () {
equal(result, EXPECTED_LICENSE_CONTACT_PARTIAL_2)
})

it('should not fail if license and/or contact are empty', async function () {
const result = await postmanToOpenApi(COLLECTION_BASIC, OUTPUT_PATH,
{
info: {
license: {},
contact: {}
}
})
equal(result, EXPECTED_BASIC)
})

it('should use depth configuration for parse paths', async function () {
const result = await postmanToOpenApi(COLLECTION_DEPTH_PATH_PARAMS, OUTPUT_PATH, { pathDepth: 1 })
equal(result, EXPECTED_DEPTH_PATH_PARAMS)
Expand Down

0 comments on commit 4d9b400

Please sign in to comment.