From 7e03c11e888c3989093ee408e238e561a9a28a32 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Fri, 6 Oct 2023 09:46:54 -0400 Subject: [PATCH 1/2] Fix extensions in test headers --- __tests__/index.test.js | 2 +- __tests__/main.test.js | 6 +----- __tests__/wait.test.js | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/__tests__/index.test.js b/__tests__/index.test.js index dabd95c..0b20ef9 100644 --- a/__tests__/index.test.js +++ b/__tests__/index.test.js @@ -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') diff --git a/__tests__/main.test.js b/__tests__/main.test.js index 3c6ffe9..021a7d1 100644 --- a/__tests__/main.test.js +++ b/__tests__/main.test.js @@ -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_`. + * Unit tests for the action's main functionality, src/main.js */ const core = require('@actions/core') const main = require('../src/main') diff --git a/__tests__/wait.test.js b/__tests__/wait.test.js index 03710c8..27d0ac9 100644 --- a/__tests__/wait.test.js +++ b/__tests__/wait.test.js @@ -1,5 +1,5 @@ /** - * Unit tests for src/wait.ts + * Unit tests for src/wait.js */ const { wait } = require('../src/wait') const { expect } = require('@jest/globals') From b6cd41f5a771f49d2a19d31657d8f0ce674eae42 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Tue, 7 Nov 2023 09:33:16 -0500 Subject: [PATCH 2/2] Update extension in test --- __tests__/wait.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/wait.test.js b/__tests__/wait.test.js index 27d0ac9..d58edc5 100644 --- a/__tests__/wait.test.js +++ b/__tests__/wait.test.js @@ -4,7 +4,7 @@ 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)