Skip to content

Commit d9ba9da

Browse files
Copilotdmichon-msft
andcommitted
Address code review comments - remove trailing whitespace
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
1 parent 717f8ac commit d9ba9da

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

libraries/node-core-library/src/test/Executable.test.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -354,15 +354,11 @@ describe('Executable process tests', () => {
354354
test('Executable.waitForExitAsync() handles multi-byte UTF-8 characters correctly', async () => {
355355
// Test that multi-byte characters are properly decoded even when split across chunks
356356
const executablePath: string = path.join(executableFolder, 'multibyte', 'output-multibyte.js');
357-
const childProcess: child_process.ChildProcess = Executable.spawn(
358-
process.argv0,
359-
[executablePath],
360-
{
361-
environment,
362-
currentWorkingDirectory: executableFolder,
363-
stdio: ['ignore', 'pipe', 'pipe']
364-
}
365-
);
357+
const childProcess: child_process.ChildProcess = Executable.spawn(process.argv0, [executablePath], {
358+
environment,
359+
currentWorkingDirectory: executableFolder,
360+
stdio: ['ignore', 'pipe', 'pipe']
361+
});
366362

367363
const result: IWaitForExitResult<string> = await Executable.waitForExitAsync(childProcess, {
368364
encoding: 'utf8'
@@ -371,7 +367,7 @@ describe('Executable process tests', () => {
371367
expect(result.exitCode).toEqual(0);
372368
expect(result.signal).toBeNull();
373369
expect(typeof result.stdout).toEqual('string');
374-
370+
375371
// The output should contain properly decoded multi-byte characters
376372
// Chinese characters (世界) and emoji (🎉)
377373
expect(result.stdout).toContain('Hello, 世界! 🎉');

0 commit comments

Comments
 (0)