fix: minor issues

This commit is contained in:
lin onetwo 2025-10-30 04:08:49 +08:00
parent 2e23d5cf9e
commit e4e97fadd3
4 changed files with 11 additions and 12 deletions

View file

@ -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}`,
);
}
});