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