mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Default PageRegistration.routePath to path based on id (#1374)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
648dbfee98
commit
0fb859a22a
3 files changed
+13
-14
No files matched your search
@@ -28,4 +28,8 @@ describe("getPageUrl", () => {
|
||||
ext.manifest.name = "@foo/bar"
|
||||
expect(getPageUrl(ext)).toBe("/extension/foo-bar")
|
||||
})
|
||||
|
||||
it("adds / prefix", () => {
|
||||
expect(getPageUrl(ext, "test")).toBe("/extension/foo-bar/test")
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user