@@ -3,35 +3,35 @@ import os from "os";
33import relative from "../../lib/utils/relative.js" ;
44
55if ( os . platform ( ) === "win32" ) {
6- test ( "should get correct relative path - depth 0 - windows" , ( t ) => {
6+ test ( "should get correct relative path - depth 0 - windows" , t => {
77 t . is ( relative ( "C:\\the\\root" , "C:\\the\\root\\one.js" ) , "one.js" ) ;
88 } ) ;
99
10- test ( "should get correct relative path - depth 1 - windows" , ( t ) => {
10+ test ( "should get correct relative path - depth 1 - windows" , t => {
1111 t . is ( relative ( "C:\\the\\root" , "C:\\the\\rootone.js" ) , "..\\rootone.js" ) ;
1212 } ) ;
1313
14- test ( "should get correct relative path - depth 2 - windows" , ( t ) => {
14+ test ( "should get correct relative path - depth 2 - windows" , t => {
1515 t . is ( relative ( "C:\\the\\root" , "C:\\therootone.js" ) , "C:\\therootone.js" ) ;
1616 } ) ;
1717
18- test ( "should get correct relative path with main root - depth 0 - windows" , ( t ) => {
18+ test ( "should get correct relative path with main root - depth 0 - windows" , t => {
1919 t . is ( relative ( "C:\\" , "C:\\the\\root\\one.js" ) , "the\\root\\one.js" ) ;
2020 } ) ;
2121} else {
22- test ( "should get correct relative path - depth 0" , ( t ) => {
22+ test ( "should get correct relative path - depth 0" , t => {
2323 t . is ( relative ( "/the/root" , "/the/root/one.js" ) , "one.js" ) ;
2424 } ) ;
2525
26- test ( "should get correct relative path - depth 1" , ( t ) => {
26+ test ( "should get correct relative path - depth 1" , t => {
2727 t . is ( relative ( "/the/root" , "/the/rootone.js" ) , "../rootone.js" ) ;
2828 } ) ;
2929
30- test ( "should get correct relative path - depth 2" , ( t ) => {
30+ test ( "should get correct relative path - depth 2" , t => {
3131 t . is ( relative ( "/the/root" , "/therootone.js" ) , "/therootone.js" ) ;
3232 } ) ;
3333
34- test ( "should get correct relative path with main root - depth 0" , ( t ) => {
34+ test ( "should get correct relative path with main root - depth 0" , t => {
3535 t . is ( relative ( "/" , "/the/root/one.js" ) , "the/root/one.js" ) ;
3636 } ) ;
3737}
0 commit comments