mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
More code cleanup for SonarQube.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user