@@ -13,19 +13,19 @@ const expect = chai.expect;
1313describe ( "ide-service" , function ( ) {
1414 describe ( "migrateSettings" , function ( ) {
1515 const ideService = new IDEService ( ) ;
16- it ( "with no ideSettings should be undefined" , function ( ) {
16+ it ( "with no ideSettings should be undefined" , async function ( ) {
1717 const user : User = {
1818 id : "string" ,
1919
2020 creationDate : "string" ,
2121 identities : [ ] ,
2222 additionalData : { } ,
2323 } ;
24- const result = ideService . migrateSettings ( user ) ;
24+ const result = await ideService . migrateSettings ( user ) ;
2525 expect ( result ) . to . undefined ;
2626 } ) ;
2727
28- it ( "with settingVersion 2.0 should be latest" , function ( ) {
28+ it ( "with settingVersion 2.0 should be latest" , async function ( ) {
2929 const user : User = {
3030 id : "string" ,
3131 creationDate : "string" ,
@@ -38,15 +38,15 @@ describe("ide-service", function () {
3838 } ,
3939 } ,
4040 } ;
41- const result = ideService . migrateSettings ( user ) ;
41+ const result = await ideService . migrateSettings ( user ) ;
4242 expect ( result ) . to . deep . equal ( {
4343 settingVersion : IDESettingsVersion ,
4444 defaultIde : "code" ,
4545 useLatestVersion : true ,
4646 } ) ;
4747 } ) ;
4848
49- it ( "with settingVersion 2.0 should be latest and remove intellij-previous" , function ( ) {
49+ it ( "with settingVersion 2.0 should be latest and remove intellij-previous" , async function ( ) {
5050 const user : User = {
5151 id : "string" ,
5252 creationDate : "string" ,
@@ -59,15 +59,15 @@ describe("ide-service", function () {
5959 } ,
6060 } ,
6161 } ;
62- const result = ideService . migrateSettings ( user ) ;
62+ const result = await ideService . migrateSettings ( user ) ;
6363 expect ( result ) . to . deep . equal ( {
6464 settingVersion : IDESettingsVersion ,
6565 defaultIde : "code" ,
6666 useLatestVersion : false ,
6767 } ) ;
6868 } ) ;
6969
70- it ( "with settingVersion latest should be undefined" , function ( ) {
70+ it ( "with settingVersion latest should be undefined" , async function ( ) {
7171 const user : User = {
7272 id : "string" ,
7373 creationDate : "string" ,
@@ -80,11 +80,11 @@ describe("ide-service", function () {
8080 } ,
8181 } ,
8282 } ;
83- const result = ideService . migrateSettings ( user ) ;
83+ const result = await ideService . migrateSettings ( user ) ;
8484 expect ( result ) . to . undefined ;
8585 } ) ;
8686
87- it ( "with code-latest should be code latest" , function ( ) {
87+ it ( "with code-latest should be code latest" , async function ( ) {
8888 const user : User = {
8989 id : "string" ,
9090 creationDate : "string" ,
@@ -96,12 +96,12 @@ describe("ide-service", function () {
9696 } ,
9797 } ,
9898 } ;
99- const result = ideService . migrateSettings ( user ) ;
99+ const result = await ideService . migrateSettings ( user ) ;
100100 expect ( result ?. defaultIde ) . to . equal ( "code" ) ;
101101 expect ( result ?. useLatestVersion ?? false ) . to . be . true ;
102102 } ) ;
103103
104- it ( "with code-desktop-insiders should be code-desktop latest" , function ( ) {
104+ it ( "with code-desktop-insiders should be code-desktop latest" , async function ( ) {
105105 const user : User = {
106106 id : "string" ,
107107 creationDate : "string" ,
@@ -114,12 +114,12 @@ describe("ide-service", function () {
114114 } ,
115115 } ,
116116 } ;
117- const result = ideService . migrateSettings ( user ) ;
117+ const result = await ideService . migrateSettings ( user ) ;
118118 expect ( result ?. defaultIde ) . to . equal ( "code-desktop" ) ;
119119 expect ( result ?. useLatestVersion ?? false ) . to . be . true ;
120120 } ) ;
121121
122- it ( "with code-desktop should be code-desktop" , function ( ) {
122+ it ( "with code-desktop should be code-desktop" , async function ( ) {
123123 const user : User = {
124124 id : "string" ,
125125 creationDate : "string" ,
@@ -132,12 +132,12 @@ describe("ide-service", function () {
132132 } ,
133133 } ,
134134 } ;
135- const result = ideService . migrateSettings ( user ) ;
135+ const result = await ideService . migrateSettings ( user ) ;
136136 expect ( result ?. defaultIde ) . to . equal ( "code-desktop" ) ;
137137 expect ( result ?. useLatestVersion ?? false ) . to . be . false ;
138138 } ) ;
139139
140- it ( "with intellij should be intellij" , function ( ) {
140+ it ( "with intellij should be intellij" , async function ( ) {
141141 const user : User = {
142142 id : "string" ,
143143 creationDate : "string" ,
@@ -151,12 +151,12 @@ describe("ide-service", function () {
151151 } ,
152152 } ,
153153 } ;
154- const result = ideService . migrateSettings ( user ) ;
154+ const result = await ideService . migrateSettings ( user ) ;
155155 expect ( result ?. defaultIde ) . to . equal ( "intellij" ) ;
156156 expect ( result ?. useLatestVersion ?? false ) . to . be . false ;
157157 } ) ;
158158
159- it ( "with intellij latest version should be intellij latest" , function ( ) {
159+ it ( "with intellij latest version should be intellij latest" , async function ( ) {
160160 const user : User = {
161161 id : "string" ,
162162 creationDate : "string" ,
@@ -170,12 +170,12 @@ describe("ide-service", function () {
170170 } ,
171171 } ,
172172 } ;
173- const result = ideService . migrateSettings ( user ) ;
173+ const result = await ideService . migrateSettings ( user ) ;
174174 expect ( result ?. defaultIde ) . to . equal ( "intellij" ) ;
175175 expect ( result ?. useLatestVersion ?? false ) . to . be . true ;
176176 } ) ;
177177
178- it ( "with user desktopIde false should be code latest" , function ( ) {
178+ it ( "with user desktopIde false should be code latest" , async function ( ) {
179179 const user : User = {
180180 id : "string" ,
181181 creationDate : "string" ,
@@ -189,7 +189,7 @@ describe("ide-service", function () {
189189 } ,
190190 } ,
191191 } ;
192- const result = ideService . migrateSettings ( user ) ;
192+ const result = await ideService . migrateSettings ( user ) ;
193193 expect ( result ?. defaultIde ) . to . equal ( "code" ) ;
194194 expect ( result ?. useLatestVersion ?? false ) . to . be . true ;
195195 } ) ;
0 commit comments