@@ -30,7 +30,7 @@ describe("Path Utilities", () => {
3030
3131 describe ( "platform-specific behavior" , ( ) => {
3232 const platforms = [ "win32" , "darwin" , "linux" ]
33- platforms . forEach ( platform => {
33+ platforms . forEach ( ( platform ) => {
3434 describe ( `on ${ platform } ` , ( ) => {
3535 beforeEach ( ( ) => {
3636 Object . defineProperty ( process , "platform" , { value : platform } )
@@ -43,12 +43,10 @@ describe("Path Utilities", () => {
4343 } )
4444
4545 it ( "should normalize mixed separators" , ( ) => {
46- const mixedPath = platform === "win32"
47- ? "C:\\Users/test\\path/file.txt"
48- : "/Users/test\\path/file.txt"
49- const normalPath = platform === "win32"
50- ? "C:\\Users\\test\\path\\file.txt"
51- : "/Users/test/path/file.txt"
46+ const mixedPath =
47+ platform === "win32" ? "C:\\Users/test\\path/file.txt" : "/Users/test\\path/file.txt"
48+ const normalPath =
49+ platform === "win32" ? "C:\\Users\\test\\path\\file.txt" : "/Users/test/path/file.txt"
5250 expect ( arePathsEqual ( mixedPath , normalPath ) ) . toBe ( true )
5351 } )
5452
@@ -120,14 +118,8 @@ describe("Path Utilities", () => {
120118 } )
121119
122120 it ( "should handle UNC paths" , ( ) => {
123- expect ( arePathsEqual (
124- "\\\\server\\share\\folder" ,
125- "\\\\SERVER\\share\\folder"
126- ) ) . toBe ( true )
127- expect ( arePathsEqual (
128- "\\\\server\\share\\folder\\" ,
129- "\\\\server\\share\\folder"
130- ) ) . toBe ( true )
121+ expect ( arePathsEqual ( "\\\\server\\share\\folder" , "\\\\SERVER\\share\\folder" ) ) . toBe ( true )
122+ expect ( arePathsEqual ( "\\\\server\\share\\folder\\" , "\\\\server\\share\\folder" ) ) . toBe ( true )
131123 } )
132124
133125 it ( "should handle extended-length paths" , ( ) => {
@@ -137,16 +129,13 @@ describe("Path Utilities", () => {
137129 } )
138130
139131 it ( "should handle network drive paths" , ( ) => {
140- expect ( arePathsEqual (
141- "Z:\\Shared\\Files" ,
142- "z:\\shared\\files"
143- ) ) . toBe ( true )
132+ expect ( arePathsEqual ( "Z:\\Shared\\Files" , "z:\\shared\\files" ) ) . toBe ( true )
144133 } )
145134 } )
146135
147136 describe ( "path segment variations" , ( ) => {
148137 const platforms = [ "win32" , "darwin" , "linux" ]
149- platforms . forEach ( platform => {
138+ platforms . forEach ( ( platform ) => {
150139 describe ( `on ${ platform } ` , ( ) => {
151140 beforeEach ( ( ) => {
152141 Object . defineProperty ( process , "platform" , { value : platform } )
0 commit comments