Skip to content

Commit e9d1fda

Browse files
authored
Merge pull request #676 from postmanlabs/feature/fix-uncertain-failing-test
Fixed issue where a test in-consistently kept failing due to uncertainity of jsf library.
2 parents 95cc99c + 2b95b15 commit e9d1fda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/base.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,9 @@ describe('CONVERT FUNCTION TESTS ', function() {
18161816
const responseBodyWithAdditionalProperties =
18171817
JSON.parse(conversionResult.output[0].data.item[0].response[1].body);
18181818
expect(responseBodyWithAdditionalProperties).to.include.keys('test1');
1819-
expect(Object.keys(responseBodyWithAdditionalProperties).length).to.be.greaterThan(1);
1819+
1820+
// json-schema-faker doesn't guarantee that there will always be additional properties generated
1821+
expect(Object.keys(responseBodyWithAdditionalProperties).length).to.be.greaterThanOrEqual(1);
18201822
done();
18211823
});
18221824
});

0 commit comments

Comments
 (0)