From 903a3321ea637af56ffb45ccc45681e36a4a4bbf Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Wed, 21 Aug 2019 15:31:44 -0400 Subject: [PATCH] Spelling (#72) * spelling: check in * spelling: compatibility * spelling: definitely * spelling: does not * spelling: maintaining * spelling: nonexistent * spelling: precede * spelling: response * spelling: was not --- README.md | 2 +- __tests__/lib.test.ts | 6 +++--- src/command.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ade0b6f..2ad866a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/__tests__/lib.test.ts b/__tests__/lib.test.ts index 43ee4a8..48ea14b 100644 --- a/__tests__/lib.test.ts +++ b/__tests__/lib.test.ts @@ -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', () => { diff --git a/src/command.ts b/src/command.ts index 73c27ae..c3cb705 100644 --- a/src/command.ts +++ b/src/command.ts @@ -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,