       expect(data.masterPrices[1]).toEqual { customerGroup: { id: 'foo' }, channel: { id: 'retailerX' } }
 
   describe '#_updatePrices', ->
-    it 'should complain when no price at retailer', ->
+
+    it 'should complain when there are no prices at retailer', ->
       updates = @priceSync._updatePrices [], [], 'bla', 'sku1'
       expect(_.size updates).toBe 0
 

PriceSync = require '../lib/pricesync'
_ = require('underscore')._
Q = require 'q'

describe 'PriceSync', ->
  beforeEach ->
    options =
      baseConfig:
        logConfig: {}
      master:
        project_key: 'x'
        client_id: 'y'

        client_secret: 'c'

    @priceSync = new PriceSync options

  describe '#_filterPrices', ->
    it 'should work for no variants', ->
      data = @priceSync._filterPrices [], [], {}, {}
