File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/commands/agent/generate Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ describe('agent generate spec NUTs', () => {
3838 env : { ...process . env , SF_MOCK_DIR : mockDir } ,
3939 } ) . jsonOutput ;
4040
41- const expectedFilePath = join ( 'config' , 'agentSpec.yaml' ) ;
41+ const expectedFilePath = resolve ( session . project . dir , 'config' , 'agentSpec.yaml' ) ;
4242 expect ( output ?. result . isSuccess ) . to . be . true ;
4343 expect ( output ?. result . specPath ) . to . equal ( expectedFilePath ) ;
4444 expect ( output ?. result . agentType ) . to . equal ( type ) ;
4545 expect ( output ?. result . role ) . to . equal ( role ) ;
4646 expect ( output ?. result . companyName ) . to . equal ( companyName ) ;
4747 expect ( output ?. result . companyDescription ) . to . equal ( companyDescription ) ;
4848 expect ( output ?. result . topics ) . to . be . an ( 'array' ) . with . lengthOf ( 10 ) ;
49- const fileStat = statSync ( join ( session . project . dir , expectedFilePath ) ) ;
49+ const fileStat = statSync ( expectedFilePath ) ;
5050 expect ( fileStat . isFile ( ) ) . to . be . true ;
5151 expect ( fileStat . size ) . to . be . greaterThan ( 0 ) ;
5252 } ) ;
You can’t perform that action at this time.
0 commit comments