@@ -90,7 +90,7 @@ describe('Sandbox Refresh', () => {
9090 const sbxName = 'refrshSbx1' ;
9191 const sbxInfo = getSandboxInfo ( { SandboxName : sbxName } ) ;
9292 const sbxProcess = getSandboxProcess ( { SandboxName : sbxName } ) ;
93- const expectedCmdResponse = Object . assign ( { } , sbxProcess , { SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` } ) ;
93+ const expectedCmdResponse = { ... sbxProcess , SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` } ;
9494 const sandboxInfoSoql = getSandboxInfoSoql ( sbxName ) ;
9595 const sandboxProcessSoql = getSandboxProcessSoql ( { SandboxName : sbxName } ) ;
9696 const connection = await stubProdOrgConnection ( sinonSandbox , hubOrgUsername ) ;
@@ -129,7 +129,7 @@ describe('Sandbox Refresh', () => {
129129 const sbxName = defaultSbxName ;
130130 const sbxInfo = getSandboxInfo ( { LicenseType : 'DEVELOPER PRO' , SandboxName : sbxName } ) ;
131131 const sbxProcess = getSandboxProcess ( { SandboxName : sbxName } ) ;
132- const expectedCmdResponse = Object . assign ( { } , sbxProcess , { SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` } ) ;
132+ const expectedCmdResponse = { ... sbxProcess , SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` } ;
133133 const sandboxInfoSoql = getSandboxInfoSoql ( sbxName ) ;
134134 const sandboxProcessSoql = getSandboxProcessSoql ( { SandboxName : sbxName } ) ;
135135 const connection = await stubProdOrgConnection ( sinonSandbox , hubOrgUsername ) ;
@@ -218,7 +218,7 @@ describe('Sandbox Refresh', () => {
218218 const sbxName = 'refrshSbx4' ;
219219 const sbxInfo = getSandboxInfo ( { SandboxName : sbxName } ) ;
220220 const sbxProcess = getSandboxProcess ( { SandboxName : sbxName } ) ;
221- const expectedCmdResponse = Object . assign ( { } , sbxProcess , { SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` } ) ;
221+ const expectedCmdResponse = { ... sbxProcess , SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` } ;
222222 const sandboxInfoSoql = getSandboxInfoSoql ( sbxName ) ;
223223 const sandboxProcessSoql = getSandboxProcessSoql ( { SandboxName : sbxName } ) ;
224224
@@ -270,9 +270,7 @@ describe('Sandbox Refresh', () => {
270270 const sandboxProcessSoql = getSandboxProcessSoql ( { SandboxName : sbxName } ) ;
271271
272272 const updatedSbxProcess = getSandboxProcess ( { Status : 'Processing' , CopyProgress : 90 , SandboxName : sbxName } ) ;
273- const expectedCmdResponse = Object . assign ( { } , updatedSbxProcess , {
274- SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` ,
275- } ) ;
273+ const expectedCmdResponse = { ...updatedSbxProcess , SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` } ;
276274 const connection = await stubProdOrgConnection ( sinonSandbox , hubOrgUsername ) ;
277275
278276 const singleRecordQueryStub = stubSingleRecordQuery ( { sinonSandbox, connection, sandboxInfoSoql, sbxInfo } ) ;
@@ -333,9 +331,7 @@ describe('Sandbox Refresh', () => {
333331 CopyProgress : 100 ,
334332 EndDate : '2024-02-22T00:37:46.000+0000' ,
335333 } ) ;
336- const expectedCmdResponse = Object . assign ( { } , completeSbxProcess , {
337- SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` ,
338- } ) ;
334+ const expectedCmdResponse = { ...completeSbxProcess , SandboxUsername : `${ hubOrgUsername } .${ sbxName } ` } ;
339335 const connection = await stubProdOrgConnection ( sinonSandbox , hubOrgUsername ) ;
340336
341337 const singleRecordQueryStub = stubSingleRecordQuery ( { sinonSandbox, connection, sandboxInfoSoql, sbxInfo } ) ;
0 commit comments