From a9dc15c180532dc5d054e502ba9296442cae352e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 5 Sep 2016 16:01:31 +0200 Subject: [PATCH 1/2] Explictly set forceId:false in test model --- test/mysql.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/mysql.test.js b/test/mysql.test.js index beefe33..8fd66ca 100644 --- a/test/mysql.test.js +++ b/test/mysql.test.js @@ -32,6 +32,8 @@ describe('mysql', function() { history: Object, stars: Number, userId: ObjectID, + }, { + forceId: false }); PostWithStringId = db.define('PostWithStringId', { From b13f501ef68a30895124fdfe20a80754165b357b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 5 Sep 2016 16:01:45 +0200 Subject: [PATCH 2/2] Use juggler@3 for running the tests --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8dde754..294cee0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "lint": "eslint .", "test": "mocha --timeout 10000 test/*.js", "posttest": "npm run lint" -}, + }, "dependencies": { "async": "^0.9.0", "debug": "^2.1.1", @@ -20,7 +20,7 @@ "bluebird": "~2.9.10", "eslint": "^2.13.1", "eslint-config-loopback": "^4.0.0", - "loopback-datasource-juggler": "^2.28.0", + "loopback-datasource-juggler": "^3.0.0-alpha.7", "mocha": "^2.1.0", "rc": "^1.0.0", "should": "^8.0.2",