Skip to content

Commit bdca551

Browse files
committed
updated test file... but still having issues
1 parent b659cb6 commit bdca551

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/win32ToWin32WSL/win32ToWin32WSL2.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<#
2+
pwsh.exe -File src\win32ToWin32WSL\win32ToWin32WSL2.ps1 'C:\Users\username\Downloads\'
23
#>
34
function pathWin32ToPosix { #
45
param($inPathWin32,$spaceEscape = "\ ") #

tests/concepts/nodePath.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe('nodePath.test.mjs', function(){
136136
const PathWin32ToPosixTests = [
137137
["C:\\Users\\Public\\Documents","C:/Users/Public/Documents"],//maybe append with quotes instead?
138138
["C:\\Users\\Public\\temp spaces\\a\\b c\\d","C:/Users/Public/temp\\ spaces/a/b\\ c/d"],
139-
["C:\\Users\\Public\\temp spaces\\a\\b c\\d","C:/Users/Public/temp\\ spaces/a/b\\ c/d"],
139+
["C:\\\\Users\\\\Public\\\\temp spaces\\\\a\\\\b c\\\\d","C:/Users/Public/temp\\ spaces/a/b\\ c/d"],
140140
["C:\\\\Users\\\\Public\\\\Documents","C:/Users/Public/Documents"]
141141
];
142142
const ogLength = PathWin32ToPosixTests.length
@@ -158,7 +158,7 @@ describe('PathWin32ToPosixTests', function(){
158158
});
159159
it(`PathWin32ToPosixTests ps1 ${win32ToPosixIndex}`, function () {
160160
// console.log(wslPassTestIndex,inputWinPath);
161-
const output = spawnSync(`pwsh.exe -file lib/test-utils/pwsh-test-mocha.ps1`,[`"${inputWinPath}"`],{shell:true});
161+
const output = spawnSync(`pwsh.exe -file lib/test-utils/pwsh-test-mocha.ps1`,[inputWinPath],{shell:true});
162162
// const output = spawnSync(`pwsh.exe -Command write-host ${inputWinPath}`,[],{shell:true});
163163
if(output.status !== 0){
164164
console.log(output.stdout.toString())

0 commit comments

Comments
 (0)