This repository has been archived on 2025-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
login-action/__tests__/context.test.ts

13 lines
361 B
TypeScript
Raw Permalink Normal View History

2025-06-05 13:08:13 +08:00
import {expect, test} from '@jest/globals';
import {getInputs} from '../src/context';
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();
});