@@ -18,7 +18,7 @@ const MOCK_WORK_ITEM: WorkItem = {
1818 description : 'Details' ,
1919 status : 'In Progress' ,
2020 owner : 'USER001' ,
21- DevopsProjectId : 'PROJ001 ' ,
21+ DevopsProjectId : '1Qg000000000001 ' ,
2222 WorkItemBranch : 'feature/branch' ,
2323 TargetBranch : 'main' ,
2424} ;
@@ -43,7 +43,7 @@ describe('devops work-item list', () => {
4343 sandbox . stub ( Org , 'create' as any ) . returns ( mockOrg ) ;
4444 sandbox . stub ( workItemsModule , 'fetchWorkItems' ) . resolves ( [ MOCK_WORK_ITEM ] ) ;
4545 } )
46- . command ( [ 'devops:work-item:list' , '--target-org' , 'testOrg' , '--project-id' , 'PROJ001 ' ] )
46+ . command ( [ 'devops:work-item:list' , '--target-org' , 'testOrg' , '--project-id' , '1Qg000000000001 ' ] )
4747 . it ( 'displays work items in table' , ( ctx ) => {
4848 expect ( ctx . stdout ) . to . contain ( 'WI-001' ) ;
4949 } ) ;
@@ -57,7 +57,7 @@ describe('devops work-item list', () => {
5757 sandbox . stub ( Org , 'create' as any ) . returns ( mockOrg ) ;
5858 sandbox . stub ( workItemsModule , 'fetchWorkItems' ) . resolves ( [ ] ) ;
5959 } )
60- . command ( [ 'devops:work-item:list' , '--target-org' , 'testOrg' , '--project-id' , 'PROJ001 ' ] )
60+ . command ( [ 'devops:work-item:list' , '--target-org' , 'testOrg' , '--project-id' , '1Qg000000000001 ' ] )
6161 . it ( 'logs message when no work items' , ( ctx ) => {
6262 expect ( ctx . stdout ) . to . contain ( 'No work items found' ) ;
6363 } ) ;
@@ -72,7 +72,7 @@ describe('devops work-item list', () => {
7272 sandbox . stub ( Org , 'create' as any ) . returns ( mockOrg ) ;
7373 sandbox . stub ( workItemsModule , 'fetchWorkItems' ) . rejects ( new Error ( "sObject type 'WorkItem' is not supported" ) ) ;
7474 } )
75- . command ( [ 'devops:work-item:list' , '--target-org' , 'testOrg' , '--project-id' , 'PROJ001 ' ] )
75+ . command ( [ 'devops:work-item:list' , '--target-org' , 'testOrg' , '--project-id' , '1Qg000000000001 ' ] )
7676 . catch ( ( ) => { } )
7777 . it ( 'shows DevOps Center not enabled error' , ( ctx ) => {
7878 expect ( ctx . stderr ) . to . contain ( 'DevOps Center is not enabled' ) ;
@@ -88,7 +88,7 @@ describe('devops work-item list', () => {
8888 sandbox . stub ( Org , 'create' as any ) . returns ( mockOrg ) ;
8989 sandbox . stub ( workItemsModule , 'fetchWorkItems' ) . rejects ( new Error ( 'Network error' ) ) ;
9090 } )
91- . command ( [ 'devops:work-item:list' , '--target-org' , 'testOrg' , '--project-id' , 'PROJ001 ' ] )
91+ . command ( [ 'devops:work-item:list' , '--target-org' , 'testOrg' , '--project-id' , '1Qg000000000001 ' ] )
9292 . catch ( ( err ) => {
9393 expect ( err . message ) . to . contain ( 'Network error' ) ;
9494 } )
0 commit comments