movied users from old project to new project anover repository, updated tests, cleared warns and errors in tests

This commit is contained in:
2024-04-01 15:26:46 +03:00
parent 10114ff67e
commit 28c13c00ec
50 changed files with 3798 additions and 776 deletions

View File

@@ -1,7 +1,6 @@
import {describe, expect, test, beforeEach} from "vitest";
import CaseOfUsersInService from '@useCases/CaseOfUsersInService.js'
import {serviceOfUsers, serviceOfServices, store} from './MockData.js'
import {appUser} from '@mocks/users.js'
describe('tests for caseOfUsersInService', () => {
@@ -17,12 +16,6 @@ describe('tests for caseOfUsersInService', () => {
expect(caseOfUsersInService).toBeDefined()
})
test('fetchUsersByService', async () => {
await caseOfUsersInService.fetchUsersByService()
const storeUsers = store.getters['users/siteUsers']
expect(storeUsers).toEqual([appUser])
})
// test('fetchUsersWithoutService', async () => {
// await caseOfUsersInService.fetchUsersWithoutService()
// const storeUsers = store.getters['users/usersWithoutSite']