1
0
mirror of https://github.com/benjlevesque/short-sha.git synced 2025-12-06 09:47:49 +01:00

delete redundant test

This commit is contained in:
Benjamin Levesque
2022-10-28 15:22:54 +02:00
parent 5da834993f
commit 385d92c56a

View File

@@ -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')
})