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] 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');