Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sderickson committed Mar 2, 2017
1 parent f57011a commit 1afbf1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/middleware/products.coffee
Expand Up @@ -103,8 +103,9 @@ productStubs = [
]

# For Backbone collection in dev environment, otherwise models merge
for productStub in productStubs
productStub._id = _.uniqueId()
if not global.testing
for productStub in productStubs
productStub._id = _.uniqueId()

module.exports = {
get
Expand Down

0 comments on commit 1afbf1a

Please sign in to comment.