More code cleanup for SonarQube.

This commit is contained in:
Akshay Joshi
2020-06-18 16:20:34 +01:00
committed by Dave Page
parent 6d3f13076f
commit bc24e3643f
13 changed files with 73 additions and 87 deletions
@@ -375,8 +375,8 @@ describe('queryToolActions', () => {
beforeEach(() => {
setUpSpies('', 'a string\nddd\nsss');
sqlEditorController.gridView.query_tool_obj.getCursor = (isFrom) => {
return isFrom ? 3 : 3;
sqlEditorController.gridView.query_tool_obj.getCursor = () => {
return 3;
};
});
@@ -422,8 +422,8 @@ describe('queryToolActions', () => {
beforeEach(() => {
setUpSpies('', 'a string\nddd\nsss');
sqlEditorController.gridView.query_tool_obj.getCursor = (isFrom) => {
return isFrom ? 3 : 3;
sqlEditorController.gridView.query_tool_obj.getCursor = () => {
return 3;
};
});
@@ -469,8 +469,8 @@ describe('queryToolActions', () => {
beforeEach(() => {
setUpSpies('', 'a string\nddd\nsss');
sqlEditorController.gridView.query_tool_obj.getCursor = (isFrom) => {
return isFrom ? 3 : 3;
sqlEditorController.gridView.query_tool_obj.getCursor = () => {
return 3;
};
});
@@ -514,8 +514,8 @@ describe('queryToolActions', () => {
beforeEach(() => {
setUpSpies('', 'a string\nddd\nsss');
sqlEditorController.gridView.query_tool_obj.getCursor = (isFrom) => {
return isFrom ? 3 : 3;
sqlEditorController.gridView.query_tool_obj.getCursor = () => {
return 3;
};
});