我正在尝试将Vuetify的复选框外观应用于Vue InstantSearch的{{1}}组件。我玩过import * as http from '../src/http';
import { account } from '../src/api/account';
describe('Account Credit Cards Test Suite', () => {
it('should get all saved credit cards in an account', async () => {
const spy = jest.spyOn(http, 'ajax');
const getAll = await account.creditCards.getAll();
expect(spy).toHaveBeenCalled();
expect(getAll).toBe(true);
});
});
有点儿,但没有成功。