Skip to content

Commit b8901d9

Browse files
committed
test for the message
1 parent 11e9cbd commit b8901d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/src/Convertor.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const $RefParser = require("@apidevtools/json-schema-ref-parser");
88
const cloneDeep = require("lodash.clonedeep");
99

1010
const Convertor = require("../../src/Convertor");
11+
const packageData = require("../../package.json");
1112

1213
// JSON Schemas
1314
// basic
@@ -949,7 +950,9 @@ describe("Convertor", () => {
949950
expect(
950951
result.schemas.basic.properties.user.properties.classes.items
951952
.properties.subRows.items
952-
).to.be.deep.equal({});
953+
).to.be.deep.equal({
954+
description: `This was found to be a circular reference and has been closed off to avoid repetitive processing. This closure was made by json-schema-for-openapi v${packageData.version} - please open an issue at: ${packageData.bugs}`,
955+
});
953956

954957
// console.log(JSON.stringify(result));
955958

0 commit comments

Comments
 (0)