users store unit tests

This commit is contained in:
Henry Jameson 2026-08-18 03:20:09 +03:00
commit 975b338586
16 changed files with 1804 additions and 727 deletions

View file

@ -96,7 +96,7 @@ export const useAnnouncementsStore = defineStore('announcements', {
this.announcements[index].read = true
})
},
startFetchingAnnouncements() {
startFetching() {
if (this.fetchAnnouncementsTimer) {
return
}
@ -109,7 +109,7 @@ export const useAnnouncementsStore = defineStore('announcements', {
return this.fetchAnnouncements()
},
stopFetchingAnnouncements() {
stopFetching() {
const interval = this.fetchAnnouncementsTimer
this.fetchAnnouncementsTimer = undefined
clearInterval(interval)