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
+9
View File
@@ -51,6 +51,15 @@ describe('UnityImageVersion', () => {
expect(image.toString()).toStrictEqual(`${defaults.image}:2099.1.1111`);
});
it('returns customImage if given', () => {
const image = new ImageTag({
version: '2099.1.1111',
platform: some.platform,
customImage: `${defaults.image}:2099.1.1111@347598437689743986`,
});
expect(image.toString()).toStrictEqual(image.customImage);
});
it('returns the specific build platform', () => {
const image = new ImageTag({ version: '2019.2.11f1', platform: 'WebGL' });