Skip to content

Commit

Permalink
Merge pull request #233 from snow-actions/refactoring
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
SnowCait committed Aug 14, 2022
2 parents d23f606 + a9b336c commit fb1c215
Show file tree
Hide file tree
Showing 8 changed files with 211 additions and 181 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)
})
186 changes: 180 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit fb1c215

Please sign in to comment.