Merge pull request #543 from strongloop/feature/fix-test-case

Fix the test cases so that they be run with the mssql connector
This commit is contained in:
Raymond Feng 2015-03-30 08:25:10 -07:00
commit 7c7f04955d
2 changed files with 7 additions and 7 deletions

View File

@ -63,12 +63,12 @@ describe('basic-querying', function () {
var createdUsers; var createdUsers;
before(function(done) { before(function(done) {
var people = [ var people = [
{ id: 1, name: 'a', vip: true }, { name: 'a', vip: true },
{ id: 2, name: 'b' }, { name: 'b' },
{ id: 3, name: 'c' }, { name: 'c' },
{ id: 4, name: 'd', vip: true }, { name: 'd', vip: true },
{ id: 5, name: 'e' }, { name: 'e' },
{ id: 6, name: 'f' } { name: 'f' }
]; ];
db.automigrate(['User'], function(err) { db.automigrate(['User'], function(err) {
User.create(people, function(err, users) { User.create(people, function(err, users) {

View File

@ -295,7 +295,7 @@ describe('manipulation', function () {
it('should refuse to create object with duplicate id', function(done) { it('should refuse to create object with duplicate id', function(done) {
// NOTE(bajtos) We cannot reuse Person model here, // NOTE(bajtos) We cannot reuse Person model here,
// `settings.forceId` aborts the CREATE request at the validation step. // `settings.forceId` aborts the CREATE request at the validation step.
var Product = db.define('Product', { name: String }); var Product = db.define('ProductTest', { name: String });
db.automigrate(function(err) { db.automigrate(function(err) {
if (err) return done(err); if (err) return done(err);