2020-10-09 10:30:45 +00:00
|
|
|
import osm = require('os');
|
|
|
|
|
|
|
|
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();
|
|
|
|
}).not.toThrowError();
|
|
|
|
});
|