test(3050): avoid includes-based source-grep assertion

This commit is contained in:
Tom Boucher
2026-05-04 23:34:57 -04:00
parent 915e7daced
commit d3d995cfc4

View File

@@ -15,8 +15,9 @@ describe('bug #3050: update backup skips unreadable files non-fatally', () => {
const hasTryCatch = /try\s*\{[\s\S]*copyFileSync\([\s\S]*\}[\s\S]*catch\s*\(err\)/.test(content);
assert.ok(hasTryCatch, 'backup copy loop must catch per-file copy errors');
const hasNonFatalSkipMessage = /Skipped \(non-fatal\):/.test(content);
assert.ok(
content.includes('Skipped (non-fatal):'),
hasNonFatalSkipMessage,
'workflow must log a non-fatal skip message for unreadable custom files',
);
});