-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
remove trailing comma from commands #263
Conversation
import * as command from '../src/command' | ||
import * as os from 'os' | ||
|
||
/* eslint-disable @typescript-eslint/unbound-method */ |
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.
this is so beforeAll can reference originalWriteFunction
. note, core.test.ts
does a similar thing so there was a precedent for disabling this already
@@ -37,21 +37,21 @@ describe('@actions/core', () => { | |||
|
|||
it('exportVariable produces the correct command and sets the env', () => { | |||
core.exportVariable('my var', 'var val') | |||
assertWriteCalls([`::set-env name=my var,::var val${os.EOL}`]) | |||
assertWriteCalls([`::set-env name=my var::var val${os.EOL}`]) |
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.
maybe I missed it but do we have any tests that validate multiple properties (and thus does write the comma)?
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.
yep command.test.ts is new and tests several combinations
fixes #208