From 9258366eafaff9a4345468dd2cdd08d8f4f6896a Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Mon, 19 Oct 2020 16:37:11 +0200 Subject: [PATCH] - tmp remove test class --- __tests__/main.test.ts | 47 ------------------------------------------ 1 file changed, 47 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 cc33507..0000000 --- a/__tests__/main.test.ts +++ /dev/null @@ -1,47 +0,0 @@ -import {ReleaseNotes} from '../src/releaseNotes' -import { resolveConfiguration } from '../src/utils'; -import { Octokit } from '@octokit/rest'; - -// shows how the runner will run a javascript action with env / stdout protocol -/* -test('test runs', () => { - jest.setTimeout(180000); - - process.env['INPUT_CONFIGURATION'] = 'configuration.json' - const ip = path.join(__dirname, '..', 'lib', 'main.js') - const options: cp.ExecSyncOptions = { - env: process.env - } - console.log(cp.execSync(`node ${ip}`, options).toString()) -}) -*/ - -// load octokit instance -const octokit = new Octokit({ - auth: `token ${process.env.GITHUB_TOKEN}` -}) - -/* -it('Should match generated changelog (unspecified fromTag)', async () => { - jest.setTimeout(180000) - - const configuration = resolveConfiguration('', 'configs/configuration.json') - const releaseNotes = new ReleaseNotes(octokit, { - owner: 'mikepenz', - repo: 'release-changelog-builder-action', - fromTag: null, - toTag: 'v0.0.3', - failOnError: false, - configuration: configuration - }) - - const changeLog = await releaseNotes.pull() - console.log(changeLog) - expect(changeLog).toStrictEqual(`## 🧪 Tests - -- [CI] Specify Test Case - - PR: #10 - -`) -}) -*/ \ No newline at end of file