 _nockAPI = (statusCode = 200, errorMessage = "") ->
   nock API_URL
   .post "/products/sync"
-  .reply statusCode, { message: errorMessage }
+  .reply statusCode, { message: errorMessage }
    .post "/jobs/#{JOB_ID}/operations", (body) -> _.omit(body, "request").should.be.eql bodyExpected
    .reply 200

describe "JobProcessor", ->

  afterEach ->

  context "when API response with good status code", ->
    it "and dequeue counter is lower than MAX_DEQUEUE_COUNT, should notify for success to notificationsApi", ->
      _nockAPI()
      _notificationsApiGetJob()

      _notificationsApiNock = nock NOTIFICATIONS_URL
      .post "/jobs/#{JOB_ID}/operations"
