Skip to content

Commit

Permalink
fixup: remove comments, update test naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy committed Jan 12, 2024
1 parent 80e8a7f commit 65335f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/telemetry/telemetryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ type KeytarSecretsMigrationFailedProperties = {
connections_with_failed_keytar_migration: number;
};

type ConnectionEditedTelemetryEventProperties = {
success: boolean;
};

type SavedConnectionsLoadedProperties = {
// Total number of connections saved on disk
saved_connections: number;
Expand All @@ -92,6 +96,7 @@ export type TelemetryEventProperties =
| ExtensionCommandRunTelemetryEventProperties
| NewConnectionTelemetryEventProperties
| DocumentUpdatedTelemetryEventProperties
| ConnectionEditedTelemetryEventProperties
| DocumentEditedTelemetryEventProperties
| QueryExportedTelemetryEventProperties
| PlaygroundCreatedTelemetryEventProperties
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/views/webviewController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ suite('Webview Test Suite', () => {
await testConnectionController.disconnect();
});

test('calls to edit the active connection when an edit connection message is passed', async () => {
test('calls to edit a connection when an edit connection message is passed', async () => {
let messageReceived;

sandbox.stub(testTelemetryService, 'trackNewConnection');
Expand Down
1 change: 0 additions & 1 deletion src/views/webview-app/connection-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const ConnectionForm: React.FunctionComponent<
{
isConnecting: boolean;
onCancelConnectClicked: () => void;
// onConnectClicked: ['onConnectClicked'];
onClose: () => void;
open: boolean;
connectionErrorMessage: string;
Expand Down

0 comments on commit 65335f2

Please sign in to comment.