File tree 1 file changed +9
-11
lines changed
crates/oxc_language_server/src 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -461,32 +461,30 @@ fn range_overlaps(a: Range, b: Range) -> bool {
461
461
mod tests {
462
462
use super :: * ;
463
463
464
- #[ ignore]
465
464
#[ test]
466
465
fn test_get_root_uri ( ) {
467
466
let worker =
468
- WorkspaceWorker :: new ( & Uri :: from_str ( "file://root/" ) . unwrap ( ) , Options :: default ( ) ) ;
467
+ WorkspaceWorker :: new ( & Uri :: from_str ( "file:/// root/" ) . unwrap ( ) , Options :: default ( ) ) ;
469
468
470
- assert_eq ! ( worker. get_root_uri( ) , Some ( Uri :: from_str( "file://root/" ) . unwrap( ) ) ) ;
469
+ assert_eq ! ( worker. get_root_uri( ) , Some ( Uri :: from_str( "file:/// root/" ) . unwrap( ) ) ) ;
471
470
}
472
471
473
472
#[ test]
474
473
fn test_is_responsible ( ) {
475
474
let worker = WorkspaceWorker :: new (
476
- & Uri :: from_str ( "file://path/to/root" ) . unwrap ( ) ,
475
+ & Uri :: from_str ( "file:/// path/to/root" ) . unwrap ( ) ,
477
476
Options :: default ( ) ,
478
477
) ;
479
478
480
479
assert ! (
481
- worker. is_responsible_for_uri( & Uri :: from_str( "file://path/to/root/file.js" ) . unwrap( ) )
480
+ worker. is_responsible_for_uri( & Uri :: from_str( "file:/// path/to/root/file.js" ) . unwrap( ) )
482
481
) ;
482
+ assert ! ( worker. is_responsible_for_uri(
483
+ & Uri :: from_str( "file:///path/to/root/folder/file.js" ) . unwrap( )
484
+ ) ) ;
483
485
assert ! (
484
- worker. is_responsible_for_uri(
485
- & Uri :: from_str( "file://path/to/root/folder/file.js" ) . unwrap( )
486
- )
487
- ) ;
488
- assert ! (
489
- !worker. is_responsible_for_uri( & Uri :: from_str( "file://path/to/other/file.js" ) . unwrap( ) )
486
+ !worker
487
+ . is_responsible_for_uri( & Uri :: from_str( "file:///path/to/other/file.js" ) . unwrap( ) )
490
488
) ;
491
489
}
492
490
}
You can’t perform that action at this time.
0 commit comments