Files
login-action/__tests__/context.test.ts
2026-03-01 11:29:31 +01:00

13 lines
357 B
TypeScript

import {expect, test} from 'vitest';
import {getInputs} from '../src/context.js';
test('with password and username getInputs does not throw error', async () => {
process.env['INPUT_USERNAME'] = 'dbowie';
process.env['INPUT_PASSWORD'] = 'groundcontrol';
process.env['INPUT_LOGOUT'] = 'true';
expect(() => {
getInputs();
}).not.toThrow();
});