mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Merge branch 'fix/referencedComponents' into fix/refprop20
This commit is contained in:
@@ -22,7 +22,6 @@ describe('getKeyInComponents function', function () {
|
||||
|
||||
it('should return ["schemas", "_folder_pet.yaml"] when the filename scaped slash', function () {
|
||||
const result = getKeyInComponents(['path', 'schemas'], '~1folder~1pet.yaml');
|
||||
|
||||
expect(result).to.be.an('array').with.length(2);
|
||||
expect(result[0]).to.equal('schemas');
|
||||
expect(result[1]).to.equal('_folder_pet.yaml');
|
||||
@@ -30,7 +29,6 @@ describe('getKeyInComponents function', function () {
|
||||
|
||||
it('should return ["schemas", "_folder_pet.yaml"] when the filename contains any slash', function () {
|
||||
const result = getKeyInComponents(['path', 'schemas'], '/folder/pet.yaml');
|
||||
|
||||
expect(result).to.be.an('array').with.length(2);
|
||||
expect(result[0]).to.equal('schemas');
|
||||
expect(result[1]).to.equal('_folder_pet.yaml');
|
||||
@@ -39,7 +37,6 @@ describe('getKeyInComponents function', function () {
|
||||
it('should return ["schemas", "_folder_pet.yaml-_Name"] when the filename contains any sacped slash' +
|
||||
'and a local part using a scaped sharp', function () {
|
||||
const result = getKeyInComponents(['path', 'schemas'], '~1folder~1pet.yaml%23~1Name');
|
||||
|
||||
expect(result).to.be.an('array').with.length(2);
|
||||
expect(result[0]).to.equal('schemas');
|
||||
expect(result[1]).to.equal('_folder_pet.yaml-_Name');
|
||||
@@ -48,7 +45,6 @@ describe('getKeyInComponents function', function () {
|
||||
it('should return ["schemas", "_folder_pet.yaml-_Name"] when the filename contains any slash' +
|
||||
'and a local part using a sharp', function () {
|
||||
const result = getKeyInComponents(['path', 'schemas'], '/folder/pet.yaml#/Name');
|
||||
|
||||
expect(result).to.be.an('array').with.length(2);
|
||||
expect(result[0]).to.equal('schemas');
|
||||
expect(result[1]).to.equal('_folder_pet.yaml-_Name');
|
||||
@@ -57,7 +53,6 @@ describe('getKeyInComponents function', function () {
|
||||
it('should return ["schemas", "_foldertest_pet.yaml-_Name"] when the filename contains any slash' +
|
||||
'and a local part using a sharp and another not valid character', function () {
|
||||
const result = getKeyInComponents(['path', 'schemas'], '/folder@test/pet@.yaml#/Name');
|
||||
|
||||
expect(result).to.be.an('array').with.length(2);
|
||||
expect(result[0]).to.equal('schemas');
|
||||
expect(result[1]).to.equal('_foldertest_pet.yaml-_Name');
|
||||
@@ -117,7 +112,6 @@ describe('concatJsonPointer function ', function () {
|
||||
['schemas', 'some_Pet.yaml'],
|
||||
'/components'
|
||||
);
|
||||
|
||||
expect(res).to.equal('#/components/schemas/some_Pet.yaml');
|
||||
});
|
||||
|
||||
@@ -135,7 +129,6 @@ describe('concatJsonPointer function ', function () {
|
||||
['schemas', '_Pets.yaml'],
|
||||
'/components'
|
||||
);
|
||||
|
||||
expect(res).to.equal('#/components/schemas/_Pets.yaml');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user