Update `should` to `13.2.3`

This commit is contained in:
Miroslav Bajtoš 2019-04-30 11:43:44 +02:00
parent 511c4763d3
commit 76673a8ed8
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
2 changed files with 5 additions and 5 deletions

View File

@ -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": {

View File

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