import { describe, it, expect,} from 'vitest';
import {apiBack} from "~/utils/api";
import {testMockTokenAccess, testMockUrlRelative} from "~/utils/tests";
import { $fetch } from '@nuxt/test-utils'
describe('api Utils',()=>{
it('Проверка корректной работы запросов к беку apiBack',()=>{
apiBack(testMockUrlRelative,testMockTokenAccess)
expect($fetch).toHaveBeenCalled();
})
})
import { describe, it, expect,} from 'vitest';
import {apiBack} from "~/utils/api";
import {testMockTokenAccess, testMockUrlRelative} from "~/utils/tests";
import { $fetch } from '@nuxt/test-utils'
describe('api Utils',()=>{
it('Проверка корректной работы запросов к беку apiBack',()=>{
apiBack(testMockUrlRelative,testMockTokenAccess)
expect($fetch).toHaveBeenCalled();
})
})