@@ -27,8 +27,8 @@ describe("UpdatePowerShell feature", function () {
27
27
process . env . POWERSHELL_UPDATECHECK = "Default" ;
28
28
const version : IPowerShellVersionDetails = {
29
29
"version" : "7.3.0" ,
30
- "displayVersion" : "7.3" ,
31
30
"edition" : "Core" ,
31
+ "commit" : "7.3.0" ,
32
32
"architecture" : "X64"
33
33
} ;
34
34
// @ts -expect-error testing doesn't require all arguments.
@@ -39,10 +39,9 @@ describe("UpdatePowerShell feature", function () {
39
39
40
40
it ( "Won't check for Windows PowerShell" , function ( ) {
41
41
const version : IPowerShellVersionDetails = {
42
- // TODO: This should handle e.g. 5.1.22621.436
43
- "version" : "5.1.0" ,
44
- "displayVersion" : "5.1" ,
42
+ "version" : "5.1.22621" ,
45
43
"edition" : "Desktop" ,
44
+ "commit" : "5.1.22621" ,
46
45
"architecture" : "X64"
47
46
} ;
48
47
// @ts -expect-error testing doesn't require all arguments.
@@ -55,8 +54,8 @@ describe("UpdatePowerShell feature", function () {
55
54
process . env . POWERSHELL_UPDATECHECK = "Off" ;
56
55
const version : IPowerShellVersionDetails = {
57
56
"version" : "7.3.0" ,
58
- "displayVersion" : "7.3" ,
59
57
"edition" : "Core" ,
58
+ "commit" : "7.3.0" ,
60
59
"architecture" : "X64"
61
60
} ;
62
61
// @ts -expect-error testing doesn't require all arguments.
@@ -69,8 +68,8 @@ describe("UpdatePowerShell feature", function () {
69
68
process . env . POWERSHELL_UPDATECHECK = "Default" ;
70
69
const version : IPowerShellVersionDetails = {
71
70
"version" : "7.3.0" ,
72
- "displayVersion" : "7.3" ,
73
71
"edition" : "Core" ,
72
+ "commit" : "7.3.0" ,
74
73
"architecture" : "X64"
75
74
} ;
76
75
// @ts -expect-error testing doesn't require all arguments.
@@ -85,8 +84,8 @@ describe("UpdatePowerShell feature", function () {
85
84
process . env . POWERSHELL_UPDATECHECK = "LTS" ;
86
85
const version : IPowerShellVersionDetails = {
87
86
"version" : "7.0.0" ,
88
- "displayVersion" : "7.0" ,
89
87
"edition" : "Core" ,
88
+ "commit" : "7.0.0" ,
90
89
"architecture" : "X64"
91
90
} ;
92
91
// @ts -expect-error testing doesn't require all arguments.
@@ -100,8 +99,8 @@ describe("UpdatePowerShell feature", function () {
100
99
it ( "Would update to stable" , async function ( ) {
101
100
const version : IPowerShellVersionDetails = {
102
101
"version" : "7.0.0" ,
103
- "displayVersion" : "7.0" ,
104
102
"edition" : "Core" ,
103
+ "commit" : "7.0.0" ,
105
104
"architecture" : "X64"
106
105
} ;
107
106
// @ts -expect-error testing doesn't require all arguments.
0 commit comments