We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b3cdce commit 45df044Copy full SHA for 45df044
site/src/modules/dashboard/Navbar/MobileMenu.test.tsx
@@ -4,7 +4,9 @@ const mockOrigin = "https://example.com";
4
5
describe("support link", () => {
6
it("should include origin if target starts with '/'", () => {
7
- (window as unknown as { location: Partial<Location> }).location = { origin: mockOrigin }; // Mock the location origin
+ (window as unknown as { location: Partial<Location> }).location = {
8
+ origin: mockOrigin,
9
+ }; // Mock the location origin
10
11
expect(includeOrigin("/test")).toBe(mockOrigin + "/test");
12
expect(includeOrigin("/path/to/resource")).toBe(
0 commit comments