mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-05 02:08:14 +09:00
fix(test): lint & e2e test (#24)
* test(e2e): add isRoot value * fix(lint): frontend linting
This commit is contained in:
parent
4c6aeedbb2
commit
3960adab8c
@ -48,6 +48,7 @@ describe('ユーザー', () => {
|
||||
// BUG isAdmin/isModeratorはUserLiteではなくMeDetailedOnlyに含まれる。
|
||||
isAdmin: undefined,
|
||||
isModerator: undefined,
|
||||
isRoot: undefined,
|
||||
});
|
||||
};
|
||||
|
||||
@ -117,6 +118,7 @@ describe('ユーザー', () => {
|
||||
bannerId: user.bannerId,
|
||||
isModerator: user.isModerator,
|
||||
isAdmin: user.isAdmin,
|
||||
isRoot: user.isRoot,
|
||||
injectFeaturedNote: user.injectFeaturedNote,
|
||||
receiveAnnouncementEmail: user.receiveAnnouncementEmail,
|
||||
alwaysMarkNsfw: user.alwaysMarkNsfw,
|
||||
|
@ -85,11 +85,11 @@ onMounted(async () => {
|
||||
onlineUsersCount.value = _onlineUsersCount;
|
||||
|
||||
misskeyApiGet('charts/users', { limit: 2, span: 'day' }).then(chart => {
|
||||
usersComparedToThePrevDay.value = stats.value?.originalUsersCount! - chart.local.total[1];
|
||||
usersComparedToThePrevDay.value = stats.value?.originalUsersCount ?? 0 - chart.local.total[1];
|
||||
});
|
||||
|
||||
misskeyApiGet('charts/notes', { limit: 2, span: 'day' }).then(chart => {
|
||||
notesComparedToThePrevDay.value = stats.value?.originalNotesCount! - chart.local.total[1];
|
||||
notesComparedToThePrevDay.value = stats.value?.originalNotesCount ?? 0 - chart.local.total[1];
|
||||
});
|
||||
|
||||
fetching.value = false;
|
||||
|
Loading…
Reference in New Issue
Block a user