From 511c4763d37c138aeaff2b54b15ea94da6a559cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 30 Apr 2019 11:37:32 +0200 Subject: [PATCH 1/2] Update `mocha` to `6.1.4` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 503bc386..baab7ea3 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "eslint": "^5.1.0", "eslint-config-loopback": "^13.0.0", "loopback-connector-throwing": "file:./test/fixtures/loopback-connector-throwing", - "mocha": "^5.2.0", + "mocha": "^6.1.4", "nyc": "^13.1.0", "should": "^8.4.0", "typescript": "^3.2.2" From 76673a8ed8fb69cfe7163d748b2f1bcefc5abe00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 30 Apr 2019 11:43:44 +0200 Subject: [PATCH 2/2] Update `should` to `13.2.3` --- package.json | 2 +- test/datatype.test.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index baab7ea3..e12d9cd9 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "loopback-connector-throwing": "file:./test/fixtures/loopback-connector-throwing", "mocha": "^6.1.4", "nyc": "^13.1.0", - "should": "^8.4.0", + "should": "^13.2.3", "typescript": "^3.2.2" }, "dependencies": { diff --git a/test/datatype.test.js b/test/datatype.test.js index 241cc470..45def863 100644 --- a/test/datatype.test.js +++ b/test/datatype.test.js @@ -183,16 +183,16 @@ describe('datatypes', function() { arr: [1, 'str'], nestedClass: new NestedClass('admin'), }); - created.list.should.deepEqual(['test']); - created.arr.should.deepEqual([1, 'str']); + created.list.toJSON().should.deepEqual(['test']); + created.arr.toJSON().should.deepEqual([1, 'str']); created.date.should.be.an.instanceOf(Date); created.date.toString().should.equal(d.toString(), 'Time must match'); created.nestedClass.should.have.property('roleName', 'admin'); const found = await Model.findById(created.id); should.exist(found); - found.list.should.deepEqual(['test']); - found.arr.should.deepEqual([1, 'str']); + found.list.toJSON().should.deepEqual(['test']); + found.arr.toJSON().should.deepEqual([1, 'str']); found.date.should.be.an.instanceOf(Date); found.date.toString().should.equal(d.toString(), 'Time must match'); found.nestedClass.should.have.property('roleName', 'admin');