     it 'should resolve reference from cache', (done) ->
       @import._resetCache()
       @import._cache.taxCategory['defaultTax_AT'] = "tax_category_internal_id"
-      spyOn(@import.client.taxCategories, "fetch").andCallFake => Promise.resolve(sampleTaxCategoryResponse)
+      spyOn(@import.client.taxCategories, "fetch").andCallFake -> Promise.resolve(sampleTaxCategoryResponse)
       taxCategoryRef = { id: 'defaultTax_AT' }
       @import._resolveReference(@import.client.taxCategories, 'taxCategory', taxCategoryRef, "name=\"#{taxCategoryRef.id}\"")
       .then (result) =>

  ]

sampleProductProjectionResponse = [
  masterVariant :
    sku: 'e'
  variants: []
]


      spyOn(@import, "_extractUniqueSkus").andCallThrough()
      spyOn(@import, "_prepareProductFetchBySkuQueryPredicate").andCallThrough()
      spyOn(@import.client.productProjections,"fetch").andCallFake -> Promise.resolve({body: {results: existingProducts}})
      spyOn(@import, "_createOrUpdate").andCallFake -> Promise.all([Promise.resolve({statusCode: 201}), Promise.resolve({statusCode: 200})])
      @import._processBatches(sampleProducts)
      .then =>
