       name:
         en: 'Foo'
       slug:
-        en: "foo-#{@unique}"
+        en: uniqueId 'foo'
       productType:
         typeId: 'product-type'
       # without all these default the syncer does not work!

      @newProduct.id = product.id
      done()
    .fail (msg) -> done(msg)


  it 'should not update minimum product', (done) ->
    data = @sync.buildActions @newProduct, @oldProduct

_ = require 'underscore'
Q = require 'q'
_.mixin require('sphere-node-utils')._u
Logger = require '../../lib/logger'
ProductSync = require '../../lib/sync/product-sync'
Config = require('../../config').config
product = require '../../models/product.json'

uniqueId = (prefix) ->
  _.uniqueId "#{prefix}#{new Date().getTime()}_"

getProductFromStaged = (product) ->
  p = product.masterData.staged
