Merge pull request #345 from actions/ncalteen-340

Fix extensions in test headers
This commit is contained in:
Nick Alteen 2023-11-07 09:50:07 -05:00 committed by GitHub
commit d665784fdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/**
* Unit tests for the action's entrypoint, src/index.ts
* Unit tests for the action's entrypoint, src/index.js
*/
const { run } = require('../src/main')

View File

@ -1,9 +1,5 @@
/**
* Unit tests for the action's main functionality, src/main.ts
*
* These should be run as if the action was called from a workflow.
* Specifically, the inputs listed in `action.yml` should be set as environment
* variables following the pattern `INPUT_<INPUT_NAME>`.
* Unit tests for the action's main functionality, src/main.js
*/
const core = require('@actions/core')
const main = require('../src/main')

View File

@ -1,10 +1,10 @@
/**
* Unit tests for src/wait.ts
* Unit tests for src/wait.js
*/
const { wait } = require('../src/wait')
const { expect } = require('@jest/globals')
describe('wait.ts', () => {
describe('wait.js', () => {
it('throws an invalid number', async () => {
const input = parseInt('foo', 10)
expect(isNaN(input)).toBe(true)