mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Update jsonPointer.test.js
Add required parameter
This commit is contained in:
@@ -21,7 +21,7 @@ describe('getKeyInComponents function', function () {
|
||||
});
|
||||
|
||||
it('should return ["schemas", "_folder_pet.yaml"] when the filename _folder_pet.yaml', function () {
|
||||
const result = getKeyInComponents(['path', 'schemas'], '_folder_pet.yaml');
|
||||
const result = getKeyInComponents(['path', 'schemas'], '_folder_pet.yaml', '3.0', '');
|
||||
expect(result).to.be.an('array').with.length(2);
|
||||
expect(result[0]).to.equal('schemas');
|
||||
expect(result[1]).to.equal('_folder_pet.yaml');
|
||||
|
||||
Reference in New Issue
Block a user