From 5236cfeeca492d67e943538fb8cb70af0591e093 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Thu, 26 Jun 2014 23:48:48 -0700 Subject: [PATCH] Fix the test cases as now inq/nin is checked for array values --- test/mysql.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/mysql.test.js b/test/mysql.test.js index b5c4e03..dfc2198 100644 --- a/test/mysql.test.js +++ b/test/mysql.test.js @@ -362,7 +362,7 @@ describe('mysql', function () { function (err, post) { Post.create({title: 'My Post2', content: 'Hello', stars: 20}, function (err, post) { - Post.find({where: {title: {inq: 'SELECT title from PostWithDefaultId'}}}, + Post.find({where: {title: {inq: ['SELECT title from PostWithDefaultId']}}}, function (err, posts) { should.not.exist(err); posts.should.have.property('length', 0); @@ -392,7 +392,7 @@ describe('mysql', function () { function (err, post) { Post.create({title: 'My Post2', content: 'Hello', stars: 20}, function (err, post) { - Post.find({where: {title: {nin: 'SELECT title from PostWithDefaultId'}}}, + Post.find({where: {title: {nin: ['SELECT title from PostWithDefaultId']}}}, function (err, posts) { should.not.exist(err); posts.should.have.property('length', 2); @@ -408,7 +408,7 @@ describe('mysql', function () { function (err, post) { Post.create({title: 'My Post2', content: 'Hello', stars: 20}, function (err, post) { - Post.find({where: {stars: {inq: 'SELECT title from PostWithDefaultId'}}}, + Post.find({where: {stars: {inq: ['SELECT title from PostWithDefaultId']}}}, function (err, posts) { should.not.exist(err); posts.should.have.property('length', 0);