Skip to content

Commit f0aa0a5

Browse files
committed
Get rid of old item factory method
We don't use it anymore.
1 parent 52ee456 commit f0aa0a5

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

extensions/ql-vscode/src/vscode-tests/no-workspace/query-history.test.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -868,45 +868,6 @@ describe('query-history', () => {
868868
const children = await treeDataProvider.getChildren();
869869
expect(children).to.deep.eq(expected);
870870
});
871-
872-
function item(label: string, start: number, t = 'local', resultCount?: number) {
873-
if (t === 'local') {
874-
return {
875-
getQueryName() {
876-
return label;
877-
},
878-
getQueryFileName() {
879-
return label + '.ql';
880-
},
881-
initialInfo: {
882-
start: new Date(start),
883-
databaseInfo: {
884-
name: 'test',
885-
}
886-
},
887-
completedQuery: {
888-
resultCount,
889-
},
890-
t
891-
};
892-
} else {
893-
return {
894-
status: 'success',
895-
remoteQuery: {
896-
queryFilePath: label + '.ql',
897-
queryName: label,
898-
executionStartTime: start,
899-
controllerRepository: {
900-
name: 'test',
901-
owner: 'user',
902-
},
903-
repositories: []
904-
},
905-
resultCount,
906-
t
907-
};
908-
}
909-
}
910871
});
911872
});
912873
});

0 commit comments

Comments
 (0)