test: fix gitlab-error-parser test expectations
Update tests to reflect that 403 (permission denied) and 404 (not found) errors are now non-recoverable, matching the updated error parser behavior. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
9492440460
commit
8b279bf1ff
+2
-2
@@ -22,7 +22,7 @@ describe('gitlab-error-parser', () => {
|
||||
const parsed = parseGitLabError(error);
|
||||
|
||||
expect(parsed.code).toBe(GitLabErrorCode.INSUFFICIENT_PERMISSIONS);
|
||||
expect(parsed.recoverable).toBe(true);
|
||||
expect(parsed.recoverable).toBe(false);
|
||||
});
|
||||
|
||||
it('should parse 404 not found errors', () => {
|
||||
@@ -30,7 +30,7 @@ describe('gitlab-error-parser', () => {
|
||||
const parsed = parseGitLabError(error);
|
||||
|
||||
expect(parsed.code).toBe(GitLabErrorCode.PROJECT_NOT_FOUND);
|
||||
expect(parsed.recoverable).toBe(true);
|
||||
expect(parsed.recoverable).toBe(false);
|
||||
});
|
||||
|
||||
it('should parse 409 conflict errors', () => {
|
||||
|
||||
Reference in New Issue
Block a user