mirror of
https://github.com/actions/javascript-action.git
synced 2025-04-07 15:59:40 +00:00
Merge pull request #345 from actions/ncalteen-340
Fix extensions in test headers
This commit is contained in:
@ -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')
|
const { run } = require('../src/main')
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Unit tests for the action's main functionality, src/main.ts
|
* Unit tests for the action's main functionality, src/main.js
|
||||||
*
|
|
||||||
* 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>`.
|
|
||||||
*/
|
*/
|
||||||
const core = require('@actions/core')
|
const core = require('@actions/core')
|
||||||
const main = require('../src/main')
|
const main = require('../src/main')
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* Unit tests for src/wait.ts
|
* Unit tests for src/wait.js
|
||||||
*/
|
*/
|
||||||
const { wait } = require('../src/wait')
|
const { wait } = require('../src/wait')
|
||||||
const { expect } = require('@jest/globals')
|
const { expect } = require('@jest/globals')
|
||||||
|
|
||||||
describe('wait.ts', () => {
|
describe('wait.js', () => {
|
||||||
it('throws an invalid number', async () => {
|
it('throws an invalid number', async () => {
|
||||||
const input = parseInt('foo', 10)
|
const input = parseInt('foo', 10)
|
||||||
expect(isNaN(input)).toBe(true)
|
expect(isNaN(input)).toBe(true)
|
||||||
|
Reference in New Issue
Block a user