25 lines
474 B
JavaScript
25 lines
474 B
JavaScript
import { shallowMount } from '@vue/test-utils';
|
|
import Calc from '@/components/Calc.vue';
|
|
|
|
let url = '';
|
|
let data = '';
|
|
|
|
const mockHttp = {
|
|
get: (_url, _data) => {
|
|
return new Promise((resolve) => {
|
|
url = _url;
|
|
data = _data;
|
|
resolve();
|
|
});
|
|
}
|
|
};
|
|
|
|
describe('Books', () => {
|
|
const wrapper = shallowMount(Calc);
|
|
it('Calc is a component', () => {
|
|
// expect(wrapper.isVueInstance()).toBeTruthy()
|
|
wrapper.setData({ number1: 1});
|
|
|
|
});
|
|
});
|