Closed raymondji closed 7 months ago
openApp(apps.chrome) is one of the examples in the documentation:
openApp(apps.chrome)
// Open an app with arguments. await openApp(apps.chrome, {arguments: ['--incognito']});
However this fails on WSL because openApp asserts that the app arguement is a string, but apps.chrome is an array of strings.
openApp
app
apps.chrome
This PR fixes the issue by allowing arrays as well in the type check.
Repro steps:
node index.js
Expected result:
Got result:
Testing done:
node index.js --withFix
openApp(apps.chrome)
is one of the examples in the documentation:However this fails on WSL because
openApp
asserts that theapp
arguement is a string, butapps.chrome
is an array of strings.This PR fixes the issue by allowing arrays as well in the type check.
Repro steps:
node index.js
Expected result:
Got result:
Testing done:
node index.js --withFix
instead