From 2299bcc3437cbcced50d2b0154838e46d6cc8c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ro=C5=BCek?= Date: Mon, 18 Mar 2024 11:14:37 +0100 Subject: [PATCH] test: use path.unixify to normalize paths --- test/specs/usage/usage.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/specs/usage/usage.spec.js b/test/specs/usage/usage.spec.js index ba0bdc24..885068f8 100644 --- a/test/specs/usage/usage.spec.js +++ b/test/specs/usage/usage.spec.js @@ -45,7 +45,7 @@ describe("Usage", () => { expect(parser.$refs.propertyMap).to.deep.equal({ "#/properties/books": - path.abs("specs/usage/definitions/design-library.json") + + path.unixify(path.abs("specs/usage/definitions/design-library.json")) + "#/definitions/Books", "#/properties/books/oneOf/0": "http://jakub.stoplight-local.com:8080/api/v1/projects/jakub/usage/nodes/reference/book.v1.json", @@ -53,9 +53,9 @@ describe("Usage", () => { "http://jakub.stoplight-local.com:8080/api/v1/projects/jakub/usage/nodes/reference/book.v1.json?mid=1", "#/properties/books/oneOf/2": "http://jakub.stoplight-local.com:8080/api/v1/projects/jakub/usage/nodes/reference/book.v2.json", - "#/properties/design-library": path.abs( + "#/properties/design-library": path.unixify(path.abs( "specs/usage/definitions/design-library.json" - ), + )), "#/properties/design-library/definitions/Books": "http://jakub.stoplight-local.com:8080/api/v1/projects/jakub/usage/nodes/reference/books.json", });