Skip to content

Commit c0a9654

Browse files
Fixed linting errors
1 parent 508ad2e commit c0a9654

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/sanity-check/api/bulkOperation-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('BulkOperation api test', () => {
141141
.catch(done)
142142
})
143143

144-
it('should get job status for the first publish job', done => {
144+
it('should get job status for the first publish job', done => {
145145
doBulkOperationWithManagementToken(tokenUidDev)
146146
.jobStatus({ job_id: jobId1, api_version: '3.2' })
147147
.then((response) => {
@@ -175,14 +175,14 @@ describe('BulkOperation api test', () => {
175175
expect(response.action).to.not.equal(undefined)
176176
expect(response.api_key).to.not.equal(undefined)
177177
expect(response.status).to.not.equal(undefined)
178-
178+
179179
// Validate body structure
180180
expect(response.body).to.not.equal(undefined)
181181
expect(response.body.branch).to.not.equal(undefined)
182182
expect(response.body.locales).to.be.an('array')
183183
expect(response.body.environments).to.be.an('array')
184184
expect(response.body.published_at).to.not.equal(undefined)
185-
185+
186186
// Validate summary structure
187187
expect(response.summary).to.not.equal(undefined)
188188
expect(response.summary.approvals).to.be.a('number')
@@ -191,7 +191,7 @@ describe('BulkOperation api test', () => {
191191
expect(response.summary.success).to.be.a('number')
192192
expect(response.summary.total_processed).to.be.a('number')
193193
expect(response.summary.unsuccess).to.be.a('number')
194-
194+
195195
done()
196196
})
197197
.catch((error) => {
@@ -254,7 +254,7 @@ describe('BulkOperation api test', () => {
254254
.catch((error) => {
255255
console.log('Job status endpoint error (expected for invalid job ID):', error.message)
256256
// This is expected to fail with invalid job ID, but should not be an auth error
257-
if (error.message && error.message.includes('authentication') || error.message.includes('401')) {
257+
if (error.message && (error.message.includes('authentication') || error.message.includes('401'))) {
258258
done(error)
259259
} else {
260260
done() // Expected error for invalid job ID

0 commit comments

Comments
 (0)