Repository: puppeteer/puppeteer
File: packages/browsers/test/src/chrome/chrome-data.spec.ts (TypeScript)

Code before:
        'Contents',
        'MacOS',
        'Google Chrome for Testing',
      ),
    );
    assert.strictEqual(
      relativeExecutablePath(BrowserPlatform.MAC_ARM, '12372323'),
      path.join(
        'chrome-mac-arm64',
        'Google Chrome for Testing.app',
        'Contents',
        'MacOS',
        'Google Chrome for Testing',
      ),
    );
    assert.strictEqual(
      relativeExecutablePath(BrowserPlatform.WIN32, '12372323'),
      path.join('chrome-win32', 'chrome.exe'),
    );
    assert.strictEqual(
      relativeExecutablePath(BrowserPlatform.WIN64, '12372323'),
      path.join('chrome-win64', 'chrome.exe'),
    );
  });

  it.only('should resolve system executable path', () => {
    process.env['PROGRAMFILES'] = 'C:\\ProgramFiles';
    process.env['ProgramW6432'] = 'C:\\ProgramFiles';
    process.env['ProgramFiles(x86)'] = 'C:\\ProgramFiles (x86)';

    try {
      assert.deepStrictEqual(
        resolveSystemExecutablePaths(
          BrowserPlatform.WIN32,
          ChromeReleaseChannel.DEV,
        ),
        [
          'C:\\ProgramFiles\\Google\\Chrome Dev\\Application\\chrome.exe',
          'C:\\ProgramFiles (x86)\\Google\\Chrome Dev\\Application\\chrome.exe',
        ],
      );
    } finally {
      delete process.env['PROGRAMFILES'];
      delete process.env['ProgramW6432'];
      delete process.env['ProgramFiles(x86)'];
    }

    assert.deepStrictEqual(
      resolveSystemExecutablePaths(
        BrowserPlatform.MAC,
        ChromeReleaseChannel.BETA,

Review comment (suggestion):
```suggestion
  it('should resolve system executable path', () => {
```

Code after:
        'Contents',
        'MacOS',
        'Google Chrome for Testing',
      ),
    );
    assert.strictEqual(
      relativeExecutablePath(BrowserPlatform.MAC_ARM, '12372323'),
      path.join(
        'chrome-mac-arm64',
        'Google Chrome for Testing.app',
        'Contents',
        'MacOS',
        'Google Chrome for Testing',
      ),
    );
    assert.strictEqual(
      relativeExecutablePath(BrowserPlatform.WIN32, '12372323'),
      path.join('chrome-win32', 'chrome.exe'),
    );
    assert.strictEqual(
      relativeExecutablePath(BrowserPlatform.WIN64, '12372323'),
      path.join('chrome-win64', 'chrome.exe'),
    );
  });

  it('should resolve system executable path', () => {
    process.env['PROGRAMFILES'] = 'C:\\ProgramFiles';
    process.env['ProgramW6432'] = 'C:\\ProgramFiles';
    process.env['ProgramFiles(x86)'] = 'C:\\ProgramFiles (x86)';

    try {
      assert.deepStrictEqual(
        resolveSystemExecutablePaths(
          BrowserPlatform.WIN32,
          ChromeReleaseChannel.DEV,
        ),
        [
          'C:\\ProgramFiles\\Google\\Chrome Dev\\Application\\chrome.exe',
          'C:\\ProgramFiles (x86)\\Google\\Chrome Dev\\Application\\chrome.exe',
        ],
      );
    } finally {
      delete process.env['PROGRAMFILES'];
      delete process.env['ProgramW6432'];
      delete process.env['ProgramFiles(x86)'];
    }

    assert.deepStrictEqual(
      resolveSystemExecutablePaths(
        BrowserPlatform.MAC,
        ChromeReleaseChannel.BETA,