File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
site/src/modules/dashboard/Navbar Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ describe("support link", () => {
8
8
origin : mockOrigin ,
9
9
} ; // Mock the location origin
10
10
11
- expect ( includeOrigin ( "/test" ) ) . toBe ( mockOrigin + " /test" ) ;
11
+ expect ( includeOrigin ( "/test" ) ) . toBe ( ` ${ mockOrigin } /test` ) ;
12
12
expect ( includeOrigin ( "/path/to/resource" ) ) . toBe (
13
- mockOrigin + " /path/to/resource" ,
13
+ ` ${ mockOrigin } /path/to/resource` ,
14
14
) ;
15
15
} ) ;
16
16
17
17
it ( "should return the target unchanged if it does not start with '/'" , ( ) => {
18
- expect ( includeOrigin ( mockOrigin + " /page" ) ) . toBe ( mockOrigin + " /page" ) ;
18
+ expect ( includeOrigin ( ` ${ mockOrigin } /page` ) ) . toBe ( ` ${ mockOrigin } /page` ) ;
19
19
expect ( includeOrigin ( "../relative/path" ) ) . toBe ( "../relative/path" ) ;
20
20
expect ( includeOrigin ( "relative/path" ) ) . toBe ( "relative/path" ) ;
21
21
} ) ;
You can’t perform that action at this time.
0 commit comments