Skip to content

Commit 29d4891

Browse files
committed
refactor: upgrade dependencies
use named import rename interface `Input` properties to camlcase
1 parent ef6c540 commit 29d4891

File tree

6 files changed

+4419
-7601
lines changed

6 files changed

+4419
-7601
lines changed

__tests__/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ test('input', () => {
1010

1111
const input = getInput()
1212

13-
expect(input.Token).toMatch('')
14-
expect(input.GistID).toMatch('gist_id')
15-
expect(input.GistFileName).toMatch('gist_file_name')
16-
expect(input.FilePath).toMatch('file_path')
13+
expect(input.token).toMatch('')
14+
expect(input.gistId).toMatch('gist_id')
15+
expect(input.gistFileName).toMatch('gist_file_name')
16+
expect(input.filePath).toMatch('file_path')
1717
})
1818

1919
test('run', () => {
20-
dotenv.config()
2120
process.env.GITHUB_WORKSPACE = process.cwd()
21+
dotenv.config()
2222
process.env.INPUT_GIST_ID = 'e885afa349a0e5d1cfb408e46d6a37bc'
2323
process.env.INPUT_GIST_FILE_NAME = 'foo.bar'
2424
process.env.INPUT_FILE_PATH = '__tests__/foo.bar'
2525

26-
const filePath = path.join(__dirname, '..', 'lib', 'index.js')
26+
const filePath = path.join(__dirname, '../lib/index.js')
2727
execSync(`node ${filePath}`, { env: process.env })
2828
})

0 commit comments

Comments
 (0)