fix: revert fix enable-url-completion input (#310)
Some checks failed
Publish Docker Image / publish (push) Has been cancelled

This commit is contained in:
Peter Evans
2025-04-03 08:46:49 +01:00
committed by GitHub
parent 0505d8b048
commit 432a30c9e0
5 changed files with 13 additions and 36 deletions

View File

@@ -1,28 +0,0 @@
import {getInputs} from '../src/input-helper'
describe('input-helper tests', () => {
const ORIGINAL_ENV = process.env
beforeEach(() => {
jest.resetModules()
process.env = {...ORIGINAL_ENV}
})
afterAll(() => {
process.env = ORIGINAL_ENV
})
test('enableUrlCompletion should be false when "false" is passed', () => {
process.env['INPUT_ENABLE-URL-COMPLETION'] = 'false'
const inputs = getInputs()
expect(inputs.enableUrlCompletion).toBe(false)
})
test('enableUrlCompletion should be true when "true" is passed', () => {
process.env['INPUT_ENABLE-URL-COMPLETION'] = 'true'
const inputs = getInputs()
expect(inputs.enableUrlCompletion).toBe(true)
})
})