         '''
       Csv().from.string(rawCSV).to.array (data, count) =>
         stocks = @import._mapStockFromCSV _.rest(data), 1, 2
-        console.log "HAJO", stocks
         expect(_.size stocks).toBe 2
         s = stocks[0]
         expect(s.sku).toBe 'abc'

        expect(s.quantityOnStock).toBe -3
        done()

    it 'shoud not crash when quantity or index is missing', (done) ->
      rawCSV =
        '''
        foo,id,amount

        s = stocks[1]
        expect(s.sku).toBe '123'
        expect(s.quantityOnStock).toBe 77
        done()

    xit 'shoud not crash when quantity is missing', (done) ->
      rawCSV =
        '''
        foo,id,amount
        bar
        '''
      Csv().from.string(rawCSV).to.array (data, count) =>
        stocks = @import._mapStockFromCSV _.rest(data), 1, 2
        expect(_.size stocks).toBe 0
        done()


