Skip to content

Commit

Permalink
test: use path.unixify to normalize paths
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Mar 18, 2024
1 parent 3fb54b4 commit 2299bcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/specs/usage/usage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ 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",
"#/properties/books/oneOf/1":
"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",
});
Expand Down

0 comments on commit 2299bcc

Please sign in to comment.