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