@@ -43,8 +43,8 @@ describe("installer tests", () => {
43
43
} ) ;
44
44
45
45
it ( "Downloads version of Task if no matching version is installed" , async ( ) => {
46
- await installer . getTask ( "2.6.0 " , "" ) ;
47
- const taskDir = path . join ( toolDir , "task" , "2.6.0 " , os . arch ( ) ) ;
46
+ await installer . getTask ( "3.37.1 " , "" ) ;
47
+ const taskDir = path . join ( toolDir , "task" , "3.37.1 " , os . arch ( ) ) ;
48
48
49
49
expect ( fs . existsSync ( `${ taskDir } .complete` ) ) . toBe ( true ) ;
50
50
@@ -67,9 +67,9 @@ describe("installer tests", () => {
67
67
nock . enableNetConnect ( ) ;
68
68
} ) ;
69
69
70
- it ( "Gets the latest version of Task 2.5 using 2.5 and no matching version is installed" , async ( ) => {
71
- await installer . getTask ( "2.5 " , "" ) ;
72
- const taskDir = path . join ( toolDir , "task" , "2.5.2 " , os . arch ( ) ) ;
70
+ it ( "Gets the latest version of Task 3.36 using 3.36 and no matching version is installed" , async ( ) => {
71
+ await installer . getTask ( "3.36 " , "" ) ;
72
+ const taskDir = path . join ( toolDir , "task" , "3.36.0 " , os . arch ( ) ) ;
73
73
74
74
expect ( fs . existsSync ( `${ taskDir } .complete` ) ) . toBe ( true ) ;
75
75
if ( IS_WINDOWS ) {
@@ -79,21 +79,9 @@ describe("installer tests", () => {
79
79
}
80
80
} ) ;
81
81
82
- it ( "Gets latest version of Task using 2.x and no matching version is installed" , async ( ) => {
83
- await installer . getTask ( "2.x" , "" ) ;
84
- const taskdir = path . join ( toolDir , "task" , "2.6.0" , os . arch ( ) ) ;
85
-
86
- expect ( fs . existsSync ( `${ taskdir } .complete` ) ) . toBe ( true ) ;
87
- if ( IS_WINDOWS ) {
88
- expect ( fs . existsSync ( path . join ( taskdir , "bin" , "task.exe" ) ) ) . toBe ( true ) ;
89
- } else {
90
- expect ( fs . existsSync ( path . join ( taskdir , "bin" , "task" ) ) ) . toBe ( true ) ;
91
- }
92
- } ) ;
93
-
94
- it ( "Gets preview version of Task using 3.x and no matching version is installed" , async ( ) => {
82
+ it ( "Gets latest version of Task using 3.x and no matching version is installed" , async ( ) => {
95
83
await installer . getTask ( "3.x" , "" ) ;
96
- const taskdir = path . join ( toolDir , "task" , "3.0.0-preview1 " , os . arch ( ) ) ;
84
+ const taskdir = path . join ( toolDir , "task" , "3.37.2 " , os . arch ( ) ) ;
97
85
98
86
expect ( fs . existsSync ( `${ taskdir } .complete` ) ) . toBe ( true ) ;
99
87
if ( IS_WINDOWS ) {
@@ -104,8 +92,8 @@ describe("installer tests", () => {
104
92
} ) ;
105
93
106
94
it ( "Skips version computing when a valid semver is provided" , async ( ) => {
107
- await installer . getTask ( "3.0 .0" , "" ) ;
108
- const taskdir = path . join ( toolDir , "task" , "3.0 .0" , os . arch ( ) ) ;
95
+ await installer . getTask ( "3.37 .0" , "" ) ;
96
+ const taskdir = path . join ( toolDir , "task" , "3.37 .0" , os . arch ( ) ) ;
109
97
110
98
expect ( fs . existsSync ( `${ taskdir } .complete` ) ) . toBe ( true ) ;
111
99
if ( IS_WINDOWS ) {
0 commit comments