Solution proposal to Issue Add customImage parameter #150 (#151)

* add customImage attribute

* add one more test for input passing && check for customImage == ''
This commit is contained in:
Kai Biermeier
2020-09-18 18:41:31 +02:00
committed by GitHub
parent cccd5074ea
commit 6a53a9e853
7 changed files with 37 additions and 2 deletions
+12
View File
@@ -20,6 +20,18 @@ describe('Input', () => {
expect(spy).toHaveBeenCalledTimes(1);
});
});
describe('customImage', () => {
it('returns the default value', () => {
expect(Input.customImage).toStrictEqual('');
});
it('takes input from the users workflow', () => {
const mockValue = '2020.4.99f9';
const spy = jest.spyOn(core, 'getInput').mockReturnValue(mockValue);
expect(Input.customImage).toStrictEqual(mockValue);
expect(spy).toHaveBeenCalledTimes(1);
});
});
describe('targetPlatform', () => {
it('returns the default value', () => {