mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
test: update FileSystemService error message assertion
This commit is contained in:
parent
9b67c45a78
commit
51a30613a3
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ describe('FileSystemService', () => {
|
|||
const result = await fileSystemService.readFile('nonexistent.md');
|
||||
|
||||
expect(result).toBeInstanceOf(Error);
|
||||
expect((result as Error).message).toContain('Path is a folder, not a file');
|
||||
expect((result as Error).message).toContain('File does not exist: ');
|
||||
expect(mockVaultService.read).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue