chore: fix and lint

This commit is contained in:
EdamAmex 2024-12-20 07:06:48 +00:00
parent 10ea0c16a1
commit 3981dc4bd1
2 changed files with 4 additions and 4 deletions

View file

@ -127,8 +127,8 @@ const $meta: Provider = {
switch (type) { switch (type) {
case 'metaUpdated': { case 'metaUpdated': {
Object.entries(body.after).forEach(([key, value]) => { Object.entries(body.after).forEach(([key, value]) => {
(meta as any)[key] = value (meta as any)[key] = value;
}) });
meta.proxyAccount = null; // joinなカラムは通常取ってこないので meta.proxyAccount = null; // joinなカラムは通常取ってこないので
break; break;
} }

View file

@ -77,7 +77,7 @@ describe('MkUrlPreview', () => {
url: 'https://example.local/player', url: 'https://example.local/player',
width: null, width: null,
height: null, height: null,
allow: undefined as unknown as string[], allow: [],
}, },
}); });
const buttons = mkUrlPreview.getAllByRole('button'); const buttons = mkUrlPreview.getAllByRole('button');
@ -123,7 +123,7 @@ describe('MkUrlPreview', () => {
url: 'https://example.local/player', url: 'https://example.local/player',
width: null, width: null,
height: null, height: null,
allow: [], allow: undefined as unknown as string[],
}, },
}); });
assert.exists(iframe, 'iframe should exist'); assert.exists(iframe, 'iframe should exist');