Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check redid keys after each test

  • Loading branch information...
commit 2dfd45efa6c8f6df6cb9f1c8ff4d1fca0a73259d 1 parent f67a76d
@wdavidw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/update.coffee
View
4 test/update.coffee
@@ -34,12 +34,12 @@ describe 'update', ->
Users.update [{email: 'missing@email.com'}], (err, users) ->
# Todo, could be "Record without identifier or unique properties
err.message.should.eql 'Invalid record, got {"email":"missing@email.com"}'
- next()
+ Users.clear next
it 'should use unique index and fail because the provided value is not indexed', (next) ->
Users.update [{username: 'missing'}], (err, users) ->
err.message.should.eql 'Unsaved record'
- next()
+ Users.clear next
describe 'unique', ->
Please sign in to comment.
Something went wrong with that request. Please try again.