From 04568c977dcc2caa612e5714b87c65f17108c403 Mon Sep 17 00:00:00 2001 From: Drew Heavner Date: Thu, 7 Nov 2019 10:03:12 -0500 Subject: [PATCH] removing default tests --- __tests__/main.test.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 6f7475ed..acb3ea17 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -3,25 +3,4 @@ import * as process from 'process' import * as cp from 'child_process' import * as path from 'path' -test('throws invalid number', async() => { - const input = parseInt('foo', 10); - await expect(wait(input)).rejects.toThrow('milleseconds not a number'); -}); - -test('wait 500 ms', async() => { - const start = new Date(); - await wait(500); - const end = new Date(); - var delta = Math.abs(end.getTime() - start.getTime()); - expect(delta).toBeGreaterThan(450); -}); - // shows how the runner will run a javascript action with env / stdout protocol -test('test runs', () => { - process.env['INPUT_MILLISECONDS'] = '500'; - const ip = path.join(__dirname, '..', 'lib', 'main.js'); - const options: cp.ExecSyncOptions = { - env: process.env - }; - console.log(cp.execSync(`node ${ip}`, options).toString()); -}); \ No newline at end of file