style: fix linting

- update eslint and eslint config
- fix linting
This commit is contained in:
virkt25 2018-08-23 23:38:15 -04:00 committed by Taranveer Virk
parent 6e09d0b4bf
commit 1a7b1be96d
2 changed files with 8 additions and 5 deletions

View File

@ -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",

View File

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