From 15ccdc990e973c9ee05eb8111551fe8937985fc9 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 24 Feb 2020 22:34:41 +0000 Subject: [PATCH] test: remove main --- __tests__/main.test.ts | 32 -------------------------------- 1 file changed, 32 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 940b6c74db..0000000000 --- a/__tests__/main.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -// import {run} from '../src/main'; - -beforeEach(() => { - jest.resetModules(); -}); - -afterEach(() => { - delete process.env['INPUT_DEPLOY_KEY']; - delete process.env['INPUT_GITHUB_TOKEN']; - delete process.env['INPUT_PERSONAL_TOKEN']; - delete process.env['INPUT_PUBLISH_BRANCH']; - delete process.env['INPUT_PUBLISH_DIR']; - delete process.env['INPUT_EXTERNAL_REPOSITORY']; - delete process.env['INPUT_ALLOW_EMPTY_COMMIT']; - delete process.env['INPUT_KEEP_FILES']; - delete process.env['INPUT_FORCE_ORPHAN']; - delete process.env['INPUT_USER_NAME']; - delete process.env['INPUT_USER_EMAIL']; - delete process.env['INPUT_COMMIT_MESSAGE']; - delete process.env['INPUT_TAG_NAME']; - delete process.env['INPUT_TAG_MESSAGE']; - delete process.env['INPUT_TAG_OVERWRITE']; -}); - -describe('Integration testing run()', () => { - test('succeed in pushing using deploy key', async () => { - // process.env['INPUT_DEPLOY_KEY'] = 'test_deploy_key'; - // process.env['GITHUB_REPOSITORY'] = 'owner/repo'; - // const exitcode = await run(); - expect(0).toBe(0); - }); -});