 ClientConfig = require '../config'
 Promise = require 'bluebird'
 path = require 'path'
+{ExtendedLogger} = require 'sphere-node-utils'
+package_json = require '../package.json'
 
 frozenTimeStamp = new Date().getTime()
 


  beforeEach ->

    errorDir = path.join(__dirname, '../errors')

    Config =
      clientConfig: ClientConfig
      errorDir: errorDir
      errorLimit: 0
      blackList: ['prices']

    @import = new ProductImport null, Config

  it 'should initialize', ->
    expect(@import).toBeDefined()

          prices: []
        ],
        version: 1

      @import._cache.productType[sampleProductTypeResponse.body.results[0].id] = sampleProductTypeResponse.body.results[0]

      spyOn(@import, "_prepareNewProduct").andCallFake (prepareProduct) -> Promise.resolve(prepareProduct)
      spyOn(@import, "_prepareUpdateProduct").andCallFake (prepareProduct) -> Promise.resolve(prepareProduct)
