Fix the test description
This commit is contained in:
parent
0fd167a41d
commit
463bf69ffc
|
@ -291,11 +291,11 @@ describe('basic-querying', function() {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('destroyAll', function() {
|
describe('destroyAll with where option', function() {
|
||||||
|
|
||||||
before(seed);
|
before(seed);
|
||||||
|
|
||||||
it('should check whether record not exist', function(done) {
|
it('should only delete instances that satisfy the where condition', function(done) {
|
||||||
User.destroyAll({name: 'John Lennon'}, function() {
|
User.destroyAll({name: 'John Lennon'}, function() {
|
||||||
User.find({where: {name: 'John Lennon'}}, function(err, data) {
|
User.find({where: {name: 'John Lennon'}}, function(err, data) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
|
|
Loading…
Reference in New Issue