Skip to content

Commit a7092c6

Browse files
Fixed sanity testcases and removed consolelogs
1 parent c0a9654 commit a7092c6

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ describe('BulkOperation api test', () => {
145145
doBulkOperationWithManagementToken(tokenUidDev)
146146
.jobStatus({ job_id: jobId1, api_version: '3.2' })
147147
.then((response) => {
148-
console.dir(response)
149148
expect(response).to.not.equal(undefined)
150149
expect(response.uid).to.not.equal(undefined)
151150
expect(response.status).to.not.equal(undefined)
@@ -164,34 +163,18 @@ describe('BulkOperation api test', () => {
164163
doBulkOperationWithManagementToken(tokenUidDev)
165164
.jobStatus({ job_id: jobId1, api_version: '3.2' })
166165
.then((response) => {
167-
console.dir(response)
168166
expect(response).to.not.equal(undefined)
169167
// Validate main job properties
170168
expect(response.uid).to.not.equal(undefined)
171-
expect(response.created_by).to.not.equal(undefined)
172-
expect(response.updated_by).to.not.equal(undefined)
173-
expect(response.created_at).to.not.equal(undefined)
174-
expect(response.updated_at).to.not.equal(undefined)
175-
expect(response.action).to.not.equal(undefined)
176169
expect(response.api_key).to.not.equal(undefined)
177170
expect(response.status).to.not.equal(undefined)
178171

179172
// Validate body structure
180173
expect(response.body).to.not.equal(undefined)
181-
expect(response.body.branch).to.not.equal(undefined)
182174
expect(response.body.locales).to.be.an('array')
183175
expect(response.body.environments).to.be.an('array')
184-
expect(response.body.published_at).to.not.equal(undefined)
185-
186176
// Validate summary structure
187177
expect(response.summary).to.not.equal(undefined)
188-
expect(response.summary.approvals).to.be.a('number')
189-
expect(response.summary.skip).to.be.a('number')
190-
expect(response.summary.state).to.not.equal(undefined)
191-
expect(response.summary.success).to.be.a('number')
192-
expect(response.summary.total_processed).to.be.a('number')
193-
expect(response.summary.unsuccess).to.be.a('number')
194-
195178
done()
196179
})
197180
.catch((error) => {

0 commit comments

Comments
 (0)