1
0
Files
login-action/__tests__/context.test.ts
T

11 lines
321 B
TypeScript
Raw Normal View History

2020-10-09 03:30:45 -07: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 03:30:45 -07:00
process.env['INPUT_PASSWORD'] = 'groundcontrol';
2021-06-22 10:39:55 +02:00
process.env['INPUT_LOGOUT'] = 'true';
2020-10-09 03:30:45 -07:00
expect(() => {
getInputs();
}).not.toThrowError();
});