Skip to content

Commit

Permalink
Merge pull request #1730 from strongloop/update-deps
Browse files Browse the repository at this point in the history
Update `mocha` and `should` to latest
  • Loading branch information
bajtos committed Apr 30, 2019
2 parents 8831242 + 76673a8 commit 0bba44e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"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",
"should": "^13.2.3",
"typescript": "^3.2.2"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions test/datatype.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 0bba44e

Please sign in to comment.