Skip to content

Commit 60b1f14

Browse files
committed
Rename and reduce test lines
1 parent 9110af8 commit 60b1f14

1 file changed

Lines changed: 3 additions & 24 deletions

File tree

extensions/ql-vscode/test/pure-tests/databases/db-item-selection.test.ts

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { DbItem, DbItemKind } from "../../../src/databases/db-item";
22
import { getSelectedDbItem } from "../../../src/databases/db-item-selection";
33
describe("db item selection", () => {
4-
it("return undefined if no item is selected", () => {
4+
it("dhoulf return undefined if no item is selected", () => {
55
const dbItems: DbItem[] = [
66
{
77
kind: DbItemKind.RootRemote,
@@ -20,13 +20,6 @@ describe("db item selection", () => {
2020
listDescription: "Top 100 repositories of a language",
2121
selected: false,
2222
},
23-
{
24-
kind: DbItemKind.RemoteSystemDefinedList,
25-
listName: "top_1000",
26-
listDisplayName: "Top 1000 repositories",
27-
listDescription: "Top 1000 repositories of a language",
28-
selected: false,
29-
},
3023
{
3124
kind: DbItemKind.RemoteOwner,
3225
ownerName: "github",
@@ -92,7 +85,7 @@ describe("db item selection", () => {
9285
expect(getSelectedDbItem(dbItems)).toBeUndefined();
9386
});
9487

95-
it("return correct local database item from DbItem list", () => {
88+
it("should return correct local database item from DbItem list", () => {
9689
const dbItems: DbItem[] = [
9790
{
9891
kind: DbItemKind.RootLocal,
@@ -142,7 +135,7 @@ describe("db item selection", () => {
142135
});
143136
});
144137

145-
it("return correct remote database list item from DbItem list", () => {
138+
it("should return correct remote database list item from DbItem list", () => {
146139
const dbItems: DbItem[] = [
147140
{
148141
kind: DbItemKind.RootRemote,
@@ -154,20 +147,6 @@ describe("db item selection", () => {
154147
listDescription: "Top 10 repositories of a language",
155148
selected: false,
156149
},
157-
{
158-
kind: DbItemKind.RemoteSystemDefinedList,
159-
listName: "top_100",
160-
listDisplayName: "Top 100 repositories",
161-
listDescription: "Top 100 repositories of a language",
162-
selected: false,
163-
},
164-
{
165-
kind: DbItemKind.RemoteSystemDefinedList,
166-
listName: "top_1000",
167-
listDisplayName: "Top 1000 repositories",
168-
listDescription: "Top 1000 repositories of a language",
169-
selected: false,
170-
},
171150
{
172151
kind: DbItemKind.RemoteOwner,
173152
ownerName: "github",

0 commit comments

Comments
 (0)