mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-23 22:06:04 +00:00
test(r): type the refusal in the leading-dot rename test for the strict:false typecheck
This commit is contained in:
parent
244a23f2e3
commit
622eba13a1
1 changed files with 3 additions and 2 deletions
|
|
@ -40,8 +40,9 @@ describe('R rename: functions R calls by name', () => {
|
|||
files: new Map(),
|
||||
graph: undefined,
|
||||
} as never);
|
||||
expect(issue?.code).toBe('unsupported_occurrence');
|
||||
expect(issue?.message).toMatch(/hook/);
|
||||
const refusal = issue as { code?: string; message?: string } | undefined;
|
||||
expect(refusal?.code).toBe('unsupported_occurrence');
|
||||
expect(refusal?.message).toMatch(/hook/);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue