style: fix linting
- update eslint and eslint config - fix linting
This commit is contained in:
parent
6e09d0b4bf
commit
1a7b1be96d
|
@ -40,8 +40,8 @@
|
|||
"grunt": "^1.0.3",
|
||||
"grunt-cli": "^1.2.0",
|
||||
"grunt-mocha-test": "^0.13.3",
|
||||
"eslint": "^4.13.0",
|
||||
"eslint-config-loopback": "^10.0.0",
|
||||
"eslint": "^5.4.0",
|
||||
"eslint-config-loopback": "^11.0.0",
|
||||
"loopback": "^3.0.0",
|
||||
"mocha": "^5.2.0",
|
||||
"sinon": "^6.0.0",
|
||||
|
|
|
@ -37,7 +37,8 @@ describe('Models Define Type Tests', function() {
|
|||
clientApp.model(RemoteModel, {dataSource: remoteDs});
|
||||
|
||||
sinon.assert.calledOnce(defineObjectTypeSpy.withArgs(
|
||||
RemoteModel.modelName));
|
||||
RemoteModel.modelName
|
||||
));
|
||||
});
|
||||
|
||||
describe('when a child model is created', () => {
|
||||
|
@ -65,9 +66,11 @@ describe('Models Define Type Tests', function() {
|
|||
clientApp.model(RemoteModel, {dataSource: remoteDs});
|
||||
|
||||
sinon.assert.calledOnce(defineObjectTypeSpy.withArgs(
|
||||
RemoteModel.modelName));
|
||||
RemoteModel.modelName
|
||||
));
|
||||
sinon.assert.calledOnce(defineObjectTypeSpy.withArgs(
|
||||
ChildModel.modelName));
|
||||
ChildModel.modelName
|
||||
));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue