Skip to content

Commit ec1cf01

Browse files
authored
Removed unnecessary awaits (#1982)
1 parent e1bc8ae commit ec1cf01

1 file changed

Lines changed: 10 additions & 23 deletions

File tree

extensions/ql-vscode/test/unit-tests/databases/config/db-config-store.test.ts

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ describe("db config store", () => {
677677
const configStore = await initializeConfig(dbConfig, configPath, app);
678678

679679
// Check
680-
const doesExist = await configStore.doesRemoteOwnerExist("owner1");
680+
const doesExist = configStore.doesRemoteOwnerExist("owner1");
681681
expect(doesExist).toEqual(true);
682682

683683
configStore.dispose();
@@ -697,7 +697,7 @@ describe("db config store", () => {
697697
const configStore = await initializeConfig(dbConfig, configPath, app);
698698

699699
// Check
700-
const doesExist = await configStore.doesRemoteListExist("list1");
700+
const doesExist = configStore.doesRemoteListExist("list1");
701701
expect(doesExist).toEqual(true);
702702

703703
configStore.dispose();
@@ -717,10 +717,7 @@ describe("db config store", () => {
717717
const configStore = await initializeConfig(dbConfig, configPath, app);
718718

719719
// Check
720-
const doesExist = await configStore.doesRemoteDbExist(
721-
"owner/repo1",
722-
"list1",
723-
);
720+
const doesExist = configStore.doesRemoteDbExist("owner/repo1", "list1");
724721
expect(doesExist).toEqual(true);
725722

726723
configStore.dispose();
@@ -740,9 +737,9 @@ describe("db config store", () => {
740737
const configStore = await initializeConfig(dbConfig, configPath, app);
741738

742739
// Check
743-
const doesDbExist = await configStore.doesLocalDbExist("db1", "list1");
740+
const doesDbExist = configStore.doesLocalDbExist("db1", "list1");
744741
expect(doesDbExist).toEqual(true);
745-
const doesListExist = await configStore.doesLocalListExist("list1");
742+
const doesListExist = configStore.doesLocalListExist("list1");
746743
expect(doesListExist).toEqual(true);
747744

748745
configStore.dispose();
@@ -755,25 +752,15 @@ describe("db config store", () => {
755752
const configStore = await initializeConfig(dbConfig, configPath, app);
756753

757754
// Check
758-
const doesLocalDbExist = await configStore.doesLocalDbExist(
759-
"db1",
760-
"list1",
761-
);
755+
const doesLocalDbExist = configStore.doesLocalDbExist("db1", "list1");
762756
expect(doesLocalDbExist).toEqual(false);
763-
const doesLocalListExist = await configStore.doesLocalListExist("list1");
757+
const doesLocalListExist = configStore.doesLocalListExist("list1");
764758
expect(doesLocalListExist).toEqual(false);
765-
const doesRemoteDbExist = await configStore.doesRemoteDbExist(
766-
"db1",
767-
"list1",
768-
);
759+
const doesRemoteDbExist = configStore.doesRemoteDbExist("db1", "list1");
769760
expect(doesRemoteDbExist).toEqual(false);
770-
const doesRemoteListExist = await configStore.doesRemoteListExist(
771-
"list1",
772-
);
761+
const doesRemoteListExist = configStore.doesRemoteListExist("list1");
773762
expect(doesRemoteListExist).toEqual(false);
774-
const doesRemoteOwnerExist = await configStore.doesRemoteOwnerExist(
775-
"owner1",
776-
);
763+
const doesRemoteOwnerExist = configStore.doesRemoteOwnerExist("owner1");
777764
expect(doesRemoteOwnerExist).toEqual(false);
778765

779766
configStore.dispose();

0 commit comments

Comments
 (0)