Skip to content

Commit 45df044

Browse files
committed
fmt/biome
1 parent 7b3cdce commit 45df044

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/src/modules/dashboard/Navbar/MobileMenu.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const mockOrigin = "https://example.com";
44

55
describe("support link", () => {
66
it("should include origin if target starts with '/'", () => {
7-
(window as unknown as { location: Partial<Location> }).location = { origin: mockOrigin }; // Mock the location origin
7+
(window as unknown as { location: Partial<Location> }).location = {
8+
origin: mockOrigin,
9+
}; // Mock the location origin
810

911
expect(includeOrigin("/test")).toBe(mockOrigin + "/test");
1012
expect(includeOrigin("/path/to/resource")).toBe(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy