2022-02-28 02:28:55 -05:00
|
|
|
import {expect, test} from '@jest/globals';
|
2023-09-08 03:35:48 -04:00
|
|
|
|
2020-10-09 06:30:45 -04:00
|
|
|
import {getInputs} from '../src/context';
|
|
|
|
|
2020-10-20 08:41:56 -04:00
|
|
|
test('with password and username getInputs does not throw error', async () => {
|
2020-10-16 12:34:48 -04:00
|
|
|
process.env['INPUT_USERNAME'] = 'dbowie';
|
2020-10-09 06:30:45 -04:00
|
|
|
process.env['INPUT_PASSWORD'] = 'groundcontrol';
|
2021-06-22 04:39:55 -04:00
|
|
|
process.env['INPUT_LOGOUT'] = 'true';
|
2020-10-09 06:30:45 -04:00
|
|
|
expect(() => {
|
|
|
|
getInputs();
|
2023-04-16 20:31:57 -04:00
|
|
|
}).not.toThrow();
|
2020-10-09 06:30:45 -04:00
|
|
|
});
|