@@ -164,7 +164,7 @@ test.serial('checkout: invalid project id', (t) => {
164164test . serial ( 'checkout: to a different valid project' , async ( t ) => {
165165 // before checkout. some-project-name is active and expanded
166166 const bcheckout = new Workspace ( '/ws' ) ;
167- t . is ( bcheckout . getConfig ( ) ? .name , 'some-project-name' ) ;
167+ t . is ( bcheckout . projectMeta . name , 'some-project-name' ) ;
168168 t . is ( bcheckout . getActiveProject ( ) ?. name , 'some-project-name' ) ;
169169
170170 await checkoutHandler (
@@ -176,7 +176,7 @@ test.serial('checkout: to a different valid project', async (t) => {
176176
177177 // after checkout. main-project-id is active and expanded
178178 const acheckout = new Workspace ( '/ws' ) ;
179- t . is ( acheckout . getConfig ( ) ? .name , 'main-project-id' ) ;
179+ t . is ( acheckout . projectMeta . name , 'main-project-id' ) ;
180180 t . is ( acheckout . getActiveProject ( ) ?. name , 'main-project-id' ) ;
181181
182182 // check if files where well expanded
@@ -189,19 +189,23 @@ test.serial('checkout: to a different valid project', async (t) => {
189189test . serial ( 'checkout: same id as active' , async ( t ) => {
190190 // before checkout. some-project-name is active and expanded
191191 const bcheckout = new Workspace ( '/ws' ) ;
192- t . is ( bcheckout . getConfig ( ) ? .name , 'some-project-name' ) ;
192+ t . is ( bcheckout . projectMeta . name , 'some-project-name' ) ;
193193 t . is ( bcheckout . getActiveProject ( ) ?. name , 'some-project-name' ) ;
194194
195195 await checkoutHandler (
196- { command : 'checkout' , projectName : 'some-project-name' , projectPath : '/ws' } ,
196+ {
197+ command : 'checkout' ,
198+ projectName : 'some-project-name' ,
199+ projectPath : '/ws' ,
200+ } ,
197201 logger
198202 ) ;
199203 const { message } = logger . _parse ( logger . _last ) ;
200204 t . is ( message , 'Expanded project to /ws' ) ;
201205
202206 // after checkout. main-project-id is active and expanded
203207 const acheckout = new Workspace ( '/ws' ) ;
204- t . is ( acheckout . getConfig ( ) ? .name , 'some-project-name' ) ;
208+ t . is ( acheckout . projectMeta . name , 'some-project-name' ) ;
205209 t . is ( acheckout . getActiveProject ( ) ?. name , 'some-project-name' ) ;
206210
207211 // check if files where well expanded
@@ -214,7 +218,7 @@ test.serial('checkout: same id as active', async (t) => {
214218test . serial ( 'checkout: switching to and back between projects' , async ( t ) => {
215219 // before checkout. some-project-name is active and expanded
216220 const bcheckout = new Workspace ( '/ws' ) ;
217- t . is ( bcheckout . getConfig ( ) ? .name , 'some-project-name' ) ;
221+ t . is ( bcheckout . projectMeta . name , 'some-project-name' ) ;
218222 t . is ( bcheckout . getActiveProject ( ) ?. name , 'some-project-name' ) ;
219223
220224 // 1. switch from some-project-name to main-project-id
@@ -227,7 +231,7 @@ test.serial('checkout: switching to and back between projects', async (t) => {
227231
228232 // after checkout. main-project-id is active and expanded
229233 const acheckout = new Workspace ( '/ws' ) ;
230- t . is ( acheckout . getConfig ( ) ? .name , 'main-project-id' ) ;
234+ t . is ( acheckout . projectMeta . name , 'main-project-id' ) ;
231235 t . is ( acheckout . getActiveProject ( ) ?. name , 'main-project-id' ) ;
232236
233237 // check if files where well expanded
@@ -238,15 +242,19 @@ test.serial('checkout: switching to and back between projects', async (t) => {
238242
239243 // 2. switch back from main-project-id to some-project-name
240244 await checkoutHandler (
241- { command : 'checkout' , projectName : 'some-project-name' , projectPath : '/ws' } ,
245+ {
246+ command : 'checkout' ,
247+ projectName : 'some-project-name' ,
248+ projectPath : '/ws' ,
249+ } ,
242250 logger
243251 ) ;
244252 const { message : lastMsg } = logger . _parse ( logger . _last ) ;
245253 t . is ( lastMsg , 'Expanded project to /ws' ) ;
246254
247255 // after checkout. main-project-id is active and expanded
248256 const fcheckout = new Workspace ( '/ws' ) ;
249- t . is ( fcheckout . getConfig ( ) ? .name , 'some-project-name' ) ;
257+ t . is ( fcheckout . projectMeta . name , 'some-project-name' ) ;
250258 t . is ( fcheckout . getActiveProject ( ) ?. name , 'some-project-name' ) ;
251259
252260 // check if files where well expanded
0 commit comments