@@ -19,16 +19,16 @@ let jobId3 = ''
1919let tokenUidDev = ''
2020let tokenUid = ''
2121
22- function delay ( ms ) {
22+ function delay ( ms ) {
2323 return new Promise ( resolve => setTimeout ( resolve , ms ) )
2424}
2525
26- async function waitForJobReady ( jobId , maxAttempts = 10 ) {
26+ async function waitForJobReady ( jobId , maxAttempts = 10 ) {
2727 for ( let attempt = 1 ; attempt <= maxAttempts ; attempt ++ ) {
2828 try {
2929 const response = await doBulkOperationWithManagementToken ( tokenUidDev )
3030 . jobStatus ( { job_id : jobId , api_version : '3.2' } )
31-
31+
3232 if ( response && response . status ) {
3333 return response
3434 }
@@ -168,7 +168,7 @@ describe('BulkOperation api test', () => {
168168
169169 it ( 'should wait for jobs to be ready and get job status for the first publish job' , async ( ) => {
170170 const response = await waitForJobReady ( jobId1 )
171-
171+
172172 expect ( response ) . to . not . equal ( undefined )
173173 expect ( response . uid ) . to . not . equal ( undefined )
174174 expect ( response . status ) . to . not . equal ( undefined )
@@ -179,7 +179,7 @@ describe('BulkOperation api test', () => {
179179
180180 it ( 'should validate detailed job status response structure' , async ( ) => {
181181 const response = await waitForJobReady ( jobId1 )
182-
182+
183183 expect ( response ) . to . not . equal ( undefined )
184184 // Validate main job properties
185185 expect ( response . uid ) . to . not . equal ( undefined )
@@ -196,7 +196,7 @@ describe('BulkOperation api test', () => {
196196
197197 it ( 'should get job status for the second publish job' , async ( ) => {
198198 const response = await waitForJobReady ( jobId2 )
199-
199+
200200 expect ( response ) . to . not . equal ( undefined )
201201 expect ( response . uid ) . to . not . equal ( undefined )
202202 expect ( response . status ) . to . not . equal ( undefined )
@@ -207,7 +207,7 @@ describe('BulkOperation api test', () => {
207207
208208 it ( 'should get job status for the third publish job' , async ( ) => {
209209 const response = await waitForJobReady ( jobId3 )
210-
210+
211211 expect ( response ) . to . not . equal ( undefined )
212212 expect ( response . uid ) . to . not . equal ( undefined )
213213 expect ( response . status ) . to . not . equal ( undefined )
@@ -218,10 +218,10 @@ describe('BulkOperation api test', () => {
218218
219219 it ( 'should get job status with bulk_version parameter' , async ( ) => {
220220 await waitForJobReady ( jobId1 )
221-
221+
222222 const response = await doBulkOperationWithManagementToken ( tokenUidDev )
223223 . jobStatus ( { job_id : jobId1 , bulk_version : 'v3' , api_version : '3.2' } )
224-
224+
225225 expect ( response ) . to . not . equal ( undefined )
226226 expect ( response . uid ) . to . not . equal ( undefined )
227227 expect ( response . status ) . to . not . equal ( undefined )
0 commit comments