Merge pull request #1730 from strongloop/update-deps
Update `mocha` and `should` to latest
This commit is contained in:
commit
0bba44ee29
|
@ -41,9 +41,9 @@
|
||||||
"eslint": "^5.1.0",
|
"eslint": "^5.1.0",
|
||||||
"eslint-config-loopback": "^13.0.0",
|
"eslint-config-loopback": "^13.0.0",
|
||||||
"loopback-connector-throwing": "file:./test/fixtures/loopback-connector-throwing",
|
"loopback-connector-throwing": "file:./test/fixtures/loopback-connector-throwing",
|
||||||
"mocha": "^5.2.0",
|
"mocha": "^6.1.4",
|
||||||
"nyc": "^13.1.0",
|
"nyc": "^13.1.0",
|
||||||
"should": "^8.4.0",
|
"should": "^13.2.3",
|
||||||
"typescript": "^3.2.2"
|
"typescript": "^3.2.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -183,16 +183,16 @@ describe('datatypes', function() {
|
||||||
arr: [1, 'str'],
|
arr: [1, 'str'],
|
||||||
nestedClass: new NestedClass('admin'),
|
nestedClass: new NestedClass('admin'),
|
||||||
});
|
});
|
||||||
created.list.should.deepEqual(['test']);
|
created.list.toJSON().should.deepEqual(['test']);
|
||||||
created.arr.should.deepEqual([1, 'str']);
|
created.arr.toJSON().should.deepEqual([1, 'str']);
|
||||||
created.date.should.be.an.instanceOf(Date);
|
created.date.should.be.an.instanceOf(Date);
|
||||||
created.date.toString().should.equal(d.toString(), 'Time must match');
|
created.date.toString().should.equal(d.toString(), 'Time must match');
|
||||||
created.nestedClass.should.have.property('roleName', 'admin');
|
created.nestedClass.should.have.property('roleName', 'admin');
|
||||||
|
|
||||||
const found = await Model.findById(created.id);
|
const found = await Model.findById(created.id);
|
||||||
should.exist(found);
|
should.exist(found);
|
||||||
found.list.should.deepEqual(['test']);
|
found.list.toJSON().should.deepEqual(['test']);
|
||||||
found.arr.should.deepEqual([1, 'str']);
|
found.arr.toJSON().should.deepEqual([1, 'str']);
|
||||||
found.date.should.be.an.instanceOf(Date);
|
found.date.should.be.an.instanceOf(Date);
|
||||||
found.date.toString().should.equal(d.toString(), 'Time must match');
|
found.date.toString().should.equal(d.toString(), 'Time must match');
|
||||||
found.nestedClass.should.have.property('roleName', 'admin');
|
found.nestedClass.should.have.property('roleName', 'admin');
|
||||||
|
|
Loading…
Reference in New Issue