mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-23 21:12:25 -08:00
fix: minor issues
This commit is contained in:
parent
2e23d5cf9e
commit
e4e97fadd3
4 changed files with 11 additions and 12 deletions
|
|
@ -146,7 +146,7 @@ Then('file {string} should exist in {string}', { timeout: 15000 }, async functio
|
|||
BACKOFF_OPTIONS,
|
||||
);
|
||||
} catch {
|
||||
// Get 1 levels up from actualPath
|
||||
// Get 1 level up from actualPath
|
||||
const oneLevelsUp = path.resolve(directoryPath, '..');
|
||||
const tree = await getDirectoryTree(oneLevelsUp);
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ Then('file {string} should exist in {string}', { timeout: 15000 }, async functio
|
|||
|
||||
throw new Error(
|
||||
`File "${fileName}" not found in directory: ${directoryPath}\n\n` +
|
||||
`Directory tree (1 levels up from ${oneLevelsUp}):\n${tree}${tidFilesContent}`,
|
||||
`Directory tree (1 level up from ${oneLevelsUp}):\n${tree}${tidFilesContent}`,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue