-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4032 from voxel51/merge/v0.23.3-to-main
Merge/v0.23.3 to main
- Loading branch information
Showing
155 changed files
with
6,528 additions
and
1,565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
app/packages/app/src/pages/datasets/__generated__/DatasetPageQuery.graphql.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { describe, expect, it } from "vitest"; | ||
import { matchPath } from "./matchPath"; | ||
|
||
describe("matches with proxy", () => { | ||
const RESULT = { | ||
path: "/datasets/:name", | ||
url: "/datasets/my-dataset", | ||
variables: { name: "my-dataset" }, | ||
}; | ||
|
||
const matchWithProxy = (search: string) => | ||
matchPath( | ||
"/my/proxy/datasets/my-dataset", | ||
{ path: "/datasets/:name" }, | ||
search, | ||
{} | ||
); | ||
|
||
it("resolves with proxy", () => { | ||
expect(matchWithProxy("?proxy=/my/proxy")).toEqual(RESULT); | ||
}); | ||
|
||
it("resolves with proxy, trailing slash", () => { | ||
expect(matchWithProxy("?proxy=/my/proxy/")).toEqual(RESULT); | ||
}); | ||
|
||
it("resolves with encoded proxy", () => { | ||
expect(matchWithProxy("?proxy=%20my%20proxy")).toEqual(RESULT); | ||
}); | ||
|
||
it("resolves with encoded proxy, trailing slash", () => { | ||
expect(matchWithProxy("?proxy=%20my%20proxy%20")).toEqual(RESULT); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.