We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aceecd4 commit f8d17a5Copy full SHA for f8d17a5
test/specs/dereference-callback/dereference-callback.spec.js
@@ -2,14 +2,14 @@
2
3
const { expect } = require("chai");
4
const $RefParser = require("../../..");
5
-const path = require("../../utils/path");
+const { rel } = require("../../utils/path");
6
7
describe("Schema with a $ref", () => {
8
it("should call onDereference", async () => {
9
let parser = new $RefParser();
10
const calls = [];
11
- const schema = await parser.dereference(
12
- path.rel("specs/dereference-callback/dereference-callback.yaml"),
+ await parser.dereference(
+ rel("specs/dereference-callback/dereference-callback.yaml"),
13
{
14
dereference: {
15
onDereference (path, object) {
0 commit comments