@@ -30,7 +30,11 @@ describe('ImageTag', () => {
30
30
31
31
test . each ( [ '2000.0.0f0' , '2011.1.11f1' ] ) ( 'accepts %p version format' , ( version ) => {
32
32
expect (
33
- ( ) => new ImageTag ( { editorVersion : version , targetPlatform : testImageParameters . targetPlatform } ) ,
33
+ ( ) =>
34
+ new ImageTag ( {
35
+ editorVersion : version ,
36
+ targetPlatform : testImageParameters . targetPlatform ,
37
+ } ) ,
34
38
) . not . toThrow ( ) ;
35
39
} ) ;
36
40
@@ -46,13 +50,16 @@ describe('ImageTag', () => {
46
50
47
51
describe ( 'toString' , ( ) => {
48
52
it ( 'returns the correct version' , ( ) => {
49
- const image = new ImageTag ( { editorVersion : '2099.1.1111' , targetPlatform : testImageParameters . targetPlatform } ) ;
53
+ const image = new ImageTag ( {
54
+ editorVersion : '2099.1.1111' ,
55
+ targetPlatform : testImageParameters . targetPlatform ,
56
+ } ) ;
50
57
switch ( process . platform ) {
51
58
case 'win32' :
52
- expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :windows-2099.1.1111-2 ` ) ;
59
+ expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :windows-2099.1.1111-3 ` ) ;
53
60
break ;
54
61
case 'linux' :
55
- expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :ubuntu-2099.1.1111-2 ` ) ;
62
+ expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :ubuntu-2099.1.1111-3 ` ) ;
56
63
break ;
57
64
}
58
65
} ) ;
@@ -67,27 +74,33 @@ describe('ImageTag', () => {
67
74
} ) ;
68
75
69
76
it ( 'returns the specific build platform' , ( ) => {
70
- const image = new ImageTag ( { editorVersion : '2019.2.11f1' , targetPlatform : 'WebGL' } ) ;
77
+ const image = new ImageTag ( {
78
+ editorVersion : '2019.2.11f1' ,
79
+ targetPlatform : 'WebGL' ,
80
+ } ) ;
71
81
72
82
switch ( process . platform ) {
73
83
case 'win32' :
74
- expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :windows-2019.2.11f1-webgl-2 ` ) ;
84
+ expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :windows-2019.2.11f1-webgl-3 ` ) ;
75
85
break ;
76
86
case 'linux' :
77
- expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :ubuntu-2019.2.11f1-webgl-2 ` ) ;
87
+ expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :ubuntu-2019.2.11f1-webgl-3 ` ) ;
78
88
break ;
79
89
}
80
90
} ) ;
81
91
82
92
it ( 'returns no specific build platform for generic targetPlatforms' , ( ) => {
83
- const image = new ImageTag ( { editorVersion : '2019.2.11f1' , targetPlatform : 'NoTarget' } ) ;
93
+ const image = new ImageTag ( {
94
+ editorVersion : '2019.2.11f1' ,
95
+ targetPlatform : 'NoTarget' ,
96
+ } ) ;
84
97
85
98
switch ( process . platform ) {
86
99
case 'win32' :
87
- expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :windows-2019.2.11f1-2 ` ) ;
100
+ expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :windows-2019.2.11f1-3 ` ) ;
88
101
break ;
89
102
case 'linux' :
90
- expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :ubuntu-2019.2.11f1-2 ` ) ;
103
+ expect ( image . toString ( ) ) . toStrictEqual ( `${ defaults . image } :ubuntu-2019.2.11f1-3 ` ) ;
91
104
break ;
92
105
}
93
106
} ) ;
0 commit comments