mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-05-06 22:18:06 +08:00
Spelling (#72)
* spelling: check in * spelling: compatibility * spelling: definitely * spelling: does not * spelling: maintaining * spelling: nonexistent * spelling: precede * spelling: response * spelling: was not
This commit is contained in:
committed by
Danny McCormick
parent
7d605994f9
commit
ad054c855d
@@ -70,7 +70,7 @@ try {
|
||||
core.debug('Inside try block');
|
||||
|
||||
if (!myInput) {
|
||||
core.warning('myInput wasnt set');
|
||||
core.warning('myInput was not set');
|
||||
}
|
||||
|
||||
// Do stuff
|
||||
|
||||
@@ -16,7 +16,7 @@ const testEnvVars = {
|
||||
// Set inputs
|
||||
INPUT_MY_INPUT: 'val',
|
||||
INPUT_MISSING: '',
|
||||
'INPUT_SPECIAL_CHARS_\'\t"\\': '\'\t"\\ repsonse '
|
||||
'INPUT_SPECIAL_CHARS_\'\t"\\': '\'\t"\\ response '
|
||||
}
|
||||
|
||||
describe('@actions/core', () => {
|
||||
@@ -101,7 +101,7 @@ describe('@actions/core', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('getInput doesnt throw on missing non-required input', () => {
|
||||
it('getInput does not throw on missing non-required input', () => {
|
||||
expect(core.getInput('missing', {required: false})).toBe('')
|
||||
})
|
||||
|
||||
@@ -110,7 +110,7 @@ describe('@actions/core', () => {
|
||||
})
|
||||
|
||||
it('getInput handles special characters', () => {
|
||||
expect(core.getInput('special chars_\'\t"\\')).toBe('\'\t"\\ repsonse')
|
||||
expect(core.getInput('special chars_\'\t"\\')).toBe('\'\t"\\ response')
|
||||
})
|
||||
|
||||
it('setOutput produces the correct command', () => {
|
||||
|
||||
@@ -14,7 +14,7 @@ interface CommandProperties {
|
||||
*
|
||||
* Examples:
|
||||
* ##[warning]This is the user warning message
|
||||
* ##[set-secret name=mypassword]definatelyNotAPassword!
|
||||
* ##[set-secret name=mypassword]definitelyNotAPassword!
|
||||
*/
|
||||
export function issueCommand(
|
||||
command: string,
|
||||
|
||||
Reference in New Issue
Block a user