From 385d92c56a11c42e114cccb5ef54749f077dbeb1 Mon Sep 17 00:00:00 2001 From: Benjamin Levesque <14175665+benjlevesque@users.noreply.github.com> Date: Fri, 28 Oct 2022 15:22:54 +0200 Subject: [PATCH] delete redundant test --- __tests__/main.test.ts | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 __tests__/main.test.ts diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts deleted file mode 100644 index b1f18f4..0000000 --- a/__tests__/main.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as process from 'process' -import * as cp from 'child_process' -import * as path from 'path' - -// shows how the runner will run a javascript action with env / stdout protocol -test('test runs', () => { - process.env['GITHUB_SHA'] = '6e8dcce3fd71cfe9aca3e18c82255dd1e4052aa1' - process.env['INPUT_LENGTH'] = '6' - const ip = path.join(__dirname, '..', 'lib', 'main.js') - const options: cp.ExecSyncOptions = { - env: process.env - } - const output = cp.execSync(`node ${ip}`, options).toString() - expect(output).toContain('::set-output name=sha::6e8dcc') -})