-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify tests to avoid spawnSync behavior on Windows #232
Conversation
@@ -9,18 +9,19 @@ import { getAPIFileType, getScriptURL, saveProjectId } from './../src/utils.js'; | |||
const { spawnSync } = require('child_process'); | |||
const TEST_CODE_JS = 'function test() { Logger.log(\'test\'); }'; | |||
const TEST_JSON = '{"timeZone": "America/New_York"}'; | |||
const CLASP = (os.type() === 'Windows_NT') ? 'clasp.cmd' : 'clasp'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment would be nice here.
But this is pretty self-explanatory too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
Let me know if master
passes on your Windows machine (I don't have a Windows machine).
Yep, the tests pass! The only bit of weirdness left is that Complete error message in case someone needs to search for it:
|
If |
Fixes #231
npm run test
succeeds. (!)npm run lint
succeeds.