mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Added a test for failing scenario
This commit is contained in:
@@ -646,6 +646,13 @@ describe('SCHEMA UTILITY FUNCTION TESTS ', function () {
|
||||
});
|
||||
|
||||
describe('convertToPmBodyData', function() {
|
||||
it('should not fail when bodyObj is not defined', function() {
|
||||
var bodyWithSchema,
|
||||
retValSchema = SchemaUtils.convertToPmBodyData(bodyWithSchema, 'ROOT', 'application/json');
|
||||
|
||||
expect(retValSchema).to.be.equal('');
|
||||
});
|
||||
|
||||
it('should work for schemas', function() {
|
||||
var bodyWithSchema = {
|
||||
schema: {
|
||||
|
||||
Reference in New Issue
Block a user