pick lints
This commit is contained in:
parent
b4608aeb53
commit
f6f3852b38
2 changed files with 6 additions and 3 deletions
|
|
@ -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('翻訳機能の利用が許可されていない場合', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue