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

Commit

Permalink
refactor: change collection name
Browse files Browse the repository at this point in the history
  • Loading branch information
joolfe committed Jul 30, 2021
1 parent cc4f4c5 commit 8115bc7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const EXPECTED_RESPONSES_MULTI_LANG = readFileSync('./test/resources/output/Resp
const EXPECTED_AUTH_REQUEST = readFileSync('./test/resources/output/AuthRequest.yml', 'utf8')
const EXPECTED_RESPONSES_NO_HEADERS = readFileSync('./test/resources/output/ResponsesNoHeaders.yml', 'utf8')
const EXPECTED_FORM_DATA = readFileSync('./test/resources/output/FormData.yml', 'utf8')
const EXPECTED_WWW_FORM_URLENCODED = readFileSync('./test/resources/output/WwwFormUrlencoded.yml', 'utf8')
const EXPECTED_FORM_URLENCODED = readFileSync('./test/resources/output/FormUrlencoded.yml', 'utf8')

const AUTH_DEFINITIONS = {
myCustomAuth: {
Expand Down Expand Up @@ -105,7 +105,7 @@ describe('Library specs', function () {
const COLLECTION_RESPONSES_MULTI_LANG = `./test/resources/input/${version}/ResponsesMultiLang.json`
const COLLECTION_AUTH_REQUEST = `./test/resources/input/${version}/AuthRequest.json`
const COLLECTION_FORM_DATA = `./test/resources/input/${version}/FormData.json`
const COLLECTION_WWW_FORM_URLENCODED = `./test/resources/input/${version}/WwwFormUrlencoded.json`
const COLLECTION_FORM_URLENCODED = `./test/resources/input/${version}/FormUrlencoded.json`

it('should work with a basic transform', async function () {
const result = await postmanToOpenApi(COLLECTION_BASIC, OUTPUT_PATH, {})
Expand Down Expand Up @@ -406,8 +406,8 @@ describe('Library specs', function () {
})

it('should parse POST methods with www form urlencoded', async function () {
const result = await postmanToOpenApi(COLLECTION_WWW_FORM_URLENCODED, OUTPUT_PATH, {})
equal(result, EXPECTED_WWW_FORM_URLENCODED)
const result = await postmanToOpenApi(COLLECTION_FORM_URLENCODED, OUTPUT_PATH, {})
equal(result, EXPECTED_FORM_URLENCODED)
})
})
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"info": {
"_postman_id": "1eaa74c4-2d76-45f0-bd34-bff5d96f0ba8",
"name": "Form Data",
"_postman_id": "c7890cb4-aa39-4569-9701-a9d6f4abc750",
"name": "Form Url Encoded",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
Expand Down Expand Up @@ -38,4 +38,4 @@
"response": []
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"info": {
"_postman_id": "1eaa74c4-2d76-45f0-bd34-bff5d96f0ba8",
"name": "Form Data",
"_postman_id": "c7890cb4-aa39-4569-9701-a9d6f4abc750",
"name": "Form Url Encoded",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
Expand Down Expand Up @@ -48,4 +48,4 @@
"response": []
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
title: Form Data
title: Form Url Encoded
version: 1.0.0
servers:
- url: https://api.io
Expand Down

0 comments on commit 8115bc7

Please sign in to comment.