Skip to content

Commit

Permalink
test: failing test for nested-extended bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
skyqrose committed Jul 19, 2023
1 parent f545b65 commit e432e6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/specs/nested-extended/nested-extended.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@ describe("Schema with a $ref nested inside an extended $ref", () => {
expect(schema).to.equal(parser.schema);
expect(schema).to.deep.equal(dereferencedSchema);
});

it("should bundle successfully", async () => {
let parser = new $RefParser();
const schema = await parser.bundle(
path.rel("specs/nested-extended/nested-extended.yaml")
);
expect(schema).to.equal(parser.schema);
expect(schema).to.deep.equal(dereferencedSchema);
});
});

0 comments on commit e432e6c

Please sign in to comment.