Skip to content

Commit 1012aab

Browse files
WilliamDarkIsDude
andauthored
Update tests/unit/routes/veeam-routes.js
Co-authored-by: Edouard COMTET <edouard.comtet@gmail.com>
1 parent 9c665d1 commit 1012aab

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

tests/unit/routes/veeam-routes.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,10 @@ describe('Veeam routes - comprehensive unit tests', () => {
224224
getVeeamFile(request, response, bucketMd, log);
225225

226226
setImmediate(() => {
227-
// Verify we logged a warning
228227
assert(logWarnSpy.calledOnce, 'should log warning for 404');
229-
230-
// The critical assertion: for 404, we should return 200 with static capacity data
231228
assert(response.writeHead.calledWith(200),
232229
'should return 200 with static capacity data for 404');
233-
234230
assert(response.end.called, 'response should be ended');
235-
236-
// Verify it's specifically handling 404 gracefully
237231
const warnCall = logWarnSpy.getCall(0);
238232
assert(warnCall.args[0].includes('404'), 'warning should mention 404');
239233

0 commit comments

Comments
 (0)