mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore: fix oxlint errors (#13434)
#### PR Dependency Tree * **PR #13434** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Improved clarity of TypeScript error suppression comments across various test files and helper scripts. Comments now specify the reasons for ignoring specific type errors, enhancing code readability for developers. * **Chores** * Updated inline comments without affecting application functionality or user experience. No changes to features, logic, or test outcomes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -493,19 +493,19 @@ describe('ORM entity CRUD', () => {
|
||||
|
||||
expect(() => {
|
||||
client.users.create({
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error ignore the type error
|
||||
name: null,
|
||||
});
|
||||
}).toThrowError("Field 'name' is required but not set.");
|
||||
|
||||
expect(() => {
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error ignore the type error
|
||||
client.users.create({});
|
||||
}).toThrowError("Field 'name' is required but not set.");
|
||||
|
||||
expect(() => {
|
||||
client.users.update(1, {
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error ignore the type error
|
||||
name: null,
|
||||
});
|
||||
}).toThrowError("Field 'name' is required but not set.");
|
||||
|
||||
Reference in New Issue
Block a user