mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 19:10:18 +01:00
chore: fix and lint
This commit is contained in:
parent
10ea0c16a1
commit
3981dc4bd1
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue