Skip to content

Commit a083ef3

Browse files
author
Mohammod Al Amin Ashik
committed
fix: remove unused variables flagged by code quality bot
Addressed GitHub code quality bot suggestions: - Removed unused import 'waitFor' from Toast.test.tsx - Removed unused variable 'saveButton' from featuresets.spec.ts Both variables were leftover from initial implementation and not needed for test logic.
1 parent 67df83a commit a083ef3

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

tests/e2e/specs/featuresets.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ test.describe('Config Editor Toast', () => {
192192
// This is tricky with Monaco editor, so we'll just test the error state
193193
const editor = page.locator('.monaco-editor');
194194
if (await editor.isVisible()) {
195-
const saveButton = page.getByRole('button', { name: /Save/i });
196-
197195
// If save is disabled due to invalid JSON, that's the expected behavior
198196
// The toast would show if we could actually trigger a save with invalid JSON
199197
}

tests/ts/components/Toast.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect, vi, beforeEach } from 'vitest';
2-
import { render, screen, waitFor } from '@testing-library/react';
2+
import { render, screen } from '@testing-library/react';
33
import userEvent from '@testing-library/user-event';
44
import { Toast, ToastContainer } from '../../../packages/ui/src/components/common/Toast';
55

0 commit comments

Comments
 (0)