Skip to content

Commit

Permalink
Separate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait committed Aug 14, 2022
1 parent bb603b9 commit 6889013
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions __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')
Expand Down
8 changes: 8 additions & 0 deletions __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)
})

0 comments on commit 6889013

Please sign in to comment.