Skip to content

Commit d12eb16

Browse files
committed
style: fix formatting in utils test README
1 parent 2eaa07f commit d12eb16

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/app/lib/utils/__tests__/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ This directory contains tests for the FileApi utility class.
44

55
## Overview
66

7-
The tests use Vitest as the testing framework, which provides excellent TypeScript support and works well with Vite-based projects like SvelteKit.
7+
The tests use Vitest as the testing framework, which provides excellent TypeScript support and works
8+
well with Vite-based projects like SvelteKit.
89

910
## Setup
1011

@@ -62,7 +63,8 @@ The `file.test.ts` file contains comprehensive tests for the `listNotes` method,
6263

6364
## Mocking Strategy
6465

65-
The tests mock the Tauri `invoke` function to simulate backend responses without requiring the actual Rust backend to be running. This allows for:
66+
The tests mock the Tauri `invoke` function to simulate backend responses without requiring the
67+
actual Rust backend to be running. This allows for:
6668

6769
- Fast test execution
6870
- Predictable test results
@@ -71,7 +73,8 @@ The tests mock the Tauri `invoke` function to simulate backend responses without
7173

7274
## Test Data
7375

74-
The tests use realistic mock data that matches the expected structure of `NoteInfo` objects returned by the Rust backend, including:
76+
The tests use realistic mock data that matches the expected structure of `NoteInfo` objects returned
77+
by the Rust backend, including:
7578

7679
- File paths with various formats
7780
- Realistic file sizes and timestamps
@@ -80,4 +83,5 @@ The tests use realistic mock data that matches the expected structure of `NoteIn
8083

8184
## Error Testing
8285

83-
The error handling tests ensure that the `FileApi.handleError` method properly normalizes different error types into consistent `AppError` objects, maintaining type safety throughout the application.
86+
The error handling tests ensure that the `FileApi.handleError` method properly normalizes different
87+
error types into consistent `AppError` objects, maintaining type safety throughout the application.

0 commit comments

Comments
 (0)