statping/frontend/test/API.spec.js

16 lines
286 B
JavaScript
Raw Normal View History

2020-02-20 05:28:39 +00:00
import API from "@/API"
import { shallowMount, mount } from '@vue/test-utils'
describe('API Tests', async () => {
await it('should get core info', async () => {
const wrapper = mount(API)
const core = await wrapper.core()
expect(core).toBe(9)
})
});