pick lints

This commit is contained in:
dakkar 2025-06-10 16:33:44 +01:00
parent b4608aeb53
commit f6f3852b38
2 changed files with 6 additions and 3 deletions

View file

@ -990,16 +990,19 @@ describe('Note', () => {
});
describe('notes/translate', () => {
// the types in misskey-js are wrong? this endpoints takes a
// `policies` object, but the generated types say it's a
// Record<string,never> ☹
beforeAll(async () => {
await api('admin/roles/update-default-policies', { policies: {
canUseTranslator: true,
}}, root);
} as unknown as Record<string, never> }, root);
});
afterAll(async () => {
await api('admin/roles/update-default-policies', { policies: {
canUseTranslator: false,
}}, root);
} as unknown as Record<string, never> }, root);
});
describe('翻訳機能の利用が許可されていない場合', () => {