Skip to content

Commit 15cae22

Browse files
committed
fix: update test files and component messages for improved clarity and type safety
1 parent bd067d2 commit 15cae22

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/app/hooks/__tests__/useDashboardWidgets.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('useDashboardWidgets', () => {
2727
let root: ReturnType<typeof createRoot>;
2828

2929
beforeEach(() => {
30-
// @ts-ignore
30+
// @ts-expect-error - LocalStorageMock for testing
3131
global.localStorage = new LocalStorageMock();
3232
container = document.createElement('div');
3333
document.body.appendChild(container);

src/components/instructor/AssessmentCreator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const AssessmentCreator: React.FC<AssessmentCreatorProps> = ({
100100

101101
{questions.length === 0 ? (
102102
<div className="border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-lg p-8 text-center">
103-
<p className="text-gray-500 dark:text-gray-400">No questions yet. Click "Add Question" to start.</p>
103+
<p className="text-gray-500 dark:text-gray-400">No questions yet. Click &quot;Add Question&quot; to start.</p>
104104
</div>
105105
) : (
106106
<div className="space-y-4">

src/components/instructor/LessonBuilder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const LessonBuilder: React.FC<LessonBuilderProps> = ({
5858

5959
{lessons.length === 0 ? (
6060
<div className="border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-lg p-8 text-center">
61-
<p className="text-gray-500 dark:text-gray-400">No lessons yet. Click "Add Lesson" to get started.</p>
61+
<p className="text-gray-500 dark:text-gray-400">No lessons yet. Click &quot;Add Lesson&quot; to get started.</p>
6262
</div>
6363
) : (
6464
<DragDropContext onDragEnd={handleDragEnd}>

src/form-management/validation/validation-feedback-display.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Object.defineProperty(global, 'document', {
3838
});
3939

4040
Object.defineProperty(global, 'requestAnimationFrame', {
41-
value: vi.fn((callback: Function) => setTimeout(callback, 0)),
41+
value: vi.fn((callback: () => void) => setTimeout(callback, 0)),
4242
writable: true
4343
});
4444

0 commit comments

Comments
 (0)