fixed eslint errors

This commit is contained in:
2024-04-02 16:59:42 +03:00
parent 053f6ef711
commit 70cb21c9af
57 changed files with 255 additions and 316 deletions

View File

@@ -1,4 +1,4 @@
import {expect, describe, vi, test, beforeEach} from 'vitest'
import {expect, describe, test, beforeEach} from 'vitest'
import ServiceOfMachines from "@services/ServiceOfMachines.js"
import {AdapterOfMachines, appModalListMachines} from "@mocks/machines.js"
import { createStore } from "vuex"
@@ -23,12 +23,6 @@ describe('test ServiceOfMachines', () => {
expect(result).toEqual(appModalListMachines)
})
test('test putModalMachines', async () => {
await serviceOfMachines.putModalMachines(appModalListMachines)
const result = store.getters['machines/modalMachines']
expect(result).toEqual(appModalListMachines)
})
test('test makeFetchAndPutModalMachines', async () => {
const funcResult = await serviceOfMachines.makeFetchAndPutModalMachines()
const storeResult = store.getters['machines/modalMachines']