diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 1e77782..6599d42 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -1,14 +1,7 @@ -import {tweet} from '../src/tweet' import * as process from 'process' import * as cp from 'child_process' import * as path from 'path' -test('tweet', async () => { - const text = Date.now().toString() - const response = await tweet(text) - await tweet(`in reply to ${text}`, [], response.id_str) -}) - // shows how the runner will run a javascript action with env / stdout protocol test('test runs', () => { process.env['INPUT_STATUS'] = new Date().toLocaleString('ja-JP') diff --git a/__tests__/tweet.test.ts b/__tests__/tweet.test.ts new file mode 100644 index 0000000..b812482 --- /dev/null +++ b/__tests__/tweet.test.ts @@ -0,0 +1,8 @@ +import 'dotenv/config' +import {tweet} from '../src/tweet' + +test('tweet', async () => { + const text = Date.now().toString() + const response = await tweet(text) + await tweet(`in reply to ${text}`, [], response.id_str) +})