@@ -15,7 +15,7 @@ import { stubMethod } from '@salesforce/ts-sinon';
1515import { fs as fsCore , SfdxError , SfdxProject } from '@salesforce/core' ;
1616import cli from 'cli-ux' ;
1717import { FlagOptions , ProgressBar , SourceCommand } from '../../../src/sourceCommand' ;
18- import { deployReport } from './deployReport ' ;
18+ import { exampleDeployResponse } from './testConsts ' ;
1919
2020describe ( 'SourceCommand' , ( ) => {
2121 const sandbox = sinon . createSandbox ( ) ;
@@ -326,7 +326,7 @@ describe('SourceCommand', () => {
326326 getConnection : ( ) => {
327327 return {
328328 metadata : {
329- checkDeployStatus : ( ) => deployReport ,
329+ checkDeployStatus : ( ) => exampleDeployResponse ,
330330 } ,
331331 } ;
332332 } ,
@@ -349,7 +349,7 @@ describe('SourceCommand', () => {
349349
350350 it ( 'should "print" the progress bar' , async ( ) => {
351351 const res = await command . callDeployProgress ( '0Af1h00000fCQgsCAG' ) ;
352- expect ( res ) . to . deep . equal ( deployReport ) ;
352+ expect ( res ) . to . deep . equal ( exampleDeployResponse ) ;
353353 expect ( initProgressBarStub . called ) . to . be . true ;
354354 expect ( pbStart . callCount ) . to . equal ( 1 ) ;
355355 expect ( pbStop . callCount ) . to . equal ( 1 ) ;
@@ -362,7 +362,7 @@ describe('SourceCommand', () => {
362362 expect ( initProgressBarStub . called ) . to . be . false ;
363363
364364 const res = await command . callDeployProgress ( '0Af1h00000fCQgsCAG' ) ;
365- expect ( res ) . to . deep . equal ( deployReport ) ;
365+ expect ( res ) . to . deep . equal ( exampleDeployResponse ) ;
366366 } ) ;
367367
368368 it ( 'should NOT "print" the progress bar because of env var' , async ( ) => {
@@ -371,7 +371,7 @@ describe('SourceCommand', () => {
371371 const res = await command . callDeployProgress ( '0Af1h00000fCQgsCAG' ) ;
372372 expect ( initProgressBarStub . called ) . to . be . false ;
373373
374- expect ( res ) . to . deep . equal ( deployReport ) ;
374+ expect ( res ) . to . deep . equal ( exampleDeployResponse ) ;
375375 } finally {
376376 delete process . env . SFDX_USE_PROGRESS_BAR ;
377377 }
0 commit comments