Skip to content

Commit

Permalink
fix: remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlambie committed Oct 31, 2017
1 parent 925974c commit f5e37da
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/unit/model/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,24 +188,5 @@ describe('History', function () {
})
})
})

it('should create history revisions when a document is deleted using a nested query', function (done) {
var conn = connection()
var mod = model('testModelName', help.getModelSchema(), conn, { storeRevisions: true })

mod.create({ fieldName: 'foo-1' }, function (err, result) {
var doc = result.results[0]
mod.delete({ _id: { '$in': [ doc._id ] } }, function (err, result) {
mod = model('testModelNameHistory', help.getModelSchema(), conn, { storeRevisions: false })
mod.find({}, {}, function (err, docs) {
should.exist(docs.results[0])
should.exist(docs.results[0].originalDocumentId)
should.exist(docs.results[0].action)
docs.results[0].action.should.eql('delete')
done()
})
})
})
})
})
})

0 comments on commit f5e37da

Please sign in to comment.