From 1e035c657ef0b4cc75c71b999efd75c47215e3fd Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 11 Sep 2015 11:15:00 -0700 Subject: [PATCH] Fix the test so that it works across DBs --- test/relations.test.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/relations.test.js b/test/relations.test.js index 06af913f..9ad91517 100644 --- a/test/relations.test.js +++ b/test/relations.test.js @@ -3107,10 +3107,17 @@ describe('relations', function () { var CompanyBoard, Boss; var companyBoardId, bossId; - before(function () { + before(function() { db = getSchema(); - CompanyBoard = db.define('CompanyBoard', {membersNumber: Number, companyId: String}); - Boss = db.define('Boss', {boardMembersNumber: Number, companyId: String}); + CompanyBoard = db.define('CompanyBoard', { + membersNumber: Number, + companyId: String + }); + Boss = db.define('Boss', { + id: {type: String, id: true, generated: false}, + boardMembersNumber: Number, + companyId: String + }); }); it('relation can be declared with primaryKey', function () {