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