Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshusinghs committed Jul 5, 2023
1 parent 785a3cb commit e65ab1b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/test/suite/connectionController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1480,13 +1480,13 @@ suite('Connection Controller Test Suite', function () {
TEST_DATABASE_URI_USER
);

const [firstConnection, secondConnection] = testConnectionController.getSavedConnections();
const [firstConnection, secondConnection] =
testConnectionController.getSavedConnections();

// Clearing the connection and disconnect
await testConnectionController.disconnect();
testConnectionController.clearAllConnections();


// Faking the failure of _migrateConnectionWithKeytarSecrets with an
// error thrown from keytar.getPassword
const originalGetPasswordFn = keytarStub.getPassword.bind(keytarStub);
Expand All @@ -1502,15 +1502,12 @@ suite('Connection Controller Test Suite', function () {
testConnectionController.loadSavedConnections()
);

assert.deepStrictEqual(
testConnectionController._connections,
{
[firstConnection.id]: {
...firstConnection,
secretStorageLocation: SecretStorageLocation.SecretStorage
}
}
);
assert.deepStrictEqual(testConnectionController._connections, {
[firstConnection.id]: {
...firstConnection,
secretStorageLocation: SecretStorageLocation.SecretStorage,
},
});
});
}
);
Expand Down

0 comments on commit e65ab1b

Please sign in to comment.