diff --git a/packages/core/__tests__/lib.test.ts b/packages/core/__tests__/lib.test.ts index 316d653d..364cfd19 100644 --- a/packages/core/__tests__/lib.test.ts +++ b/packages/core/__tests__/lib.test.ts @@ -96,17 +96,17 @@ describe('@actions/core', () => { }) it('getInput gets required input', () => { - expect(core.getInput('my input', { required: true})).toBe('val') + expect(core.getInput('my input', {required: true})).toBe('val') }) it('getInput throws on missing required input', () => { - expect(() => core.getInput('missing', { required: true})).toThrow( + expect(() => core.getInput('missing', {required: true})).toThrow( 'Input required and not supplied: missing' ) }) it('getInput does not throw on missing non-required input', () => { - expect(core.getInput('missing', { required: false})).toBe('') + expect(core.getInput('missing', {required: false})).toBe('') }) it('getInput is case insensitive', () => { diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index b1a7054a..3fee6bb5 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -1,4 +1,4 @@ -import { issue, issueCommand} from './command' +import {issue, issueCommand} from './command' import * as os from 'os' import * as path from 'path' @@ -86,7 +86,7 @@ export function getInput(name: string, options?: InputOptions): string { * @param value value to store */ export function setOutput(name: string, value: string): void { - issueCommand('set-output', { name }, value) + issueCommand('set-output', {name}, value) } //----------------------------------------------------------------------- @@ -190,7 +190,7 @@ export async function group(name: string, fn: () => Promise): Promise { * @param value value to store */ export function saveState(name: string, value: string): void { - issueCommand('save-state', { name }, value) + issueCommand('save-state', {name}, value) } /**