removed commented notes to myself and updated to @ notation
This commit is contained in:
parent
98b872a81a
commit
fada12ae81
1 changed files with 1 additions and 17 deletions
|
|
@ -1,20 +1,4 @@
|
|||
import axios from 'axios';
|
||||
import './global-methods.js';
|
||||
|
||||
|
||||
/*
|
||||
jest.mock('axios');
|
||||
|
||||
test('should fetch users', () => {
|
||||
const users = [{name: 'Bob'}];
|
||||
const resp = {data: users};
|
||||
axios.get.mockResolvedValue(resp);
|
||||
|
||||
// or you could use the following depending on your use case:
|
||||
// axios.get.mockImplementation(() => Promise.resolve(resp))
|
||||
|
||||
return Users.all().then(data => expect(data).toEqual(users));
|
||||
});
|
||||
*/
|
||||
import '@/global-methods.js';
|
||||
|
||||
test.todo("Need to add some tests here");
|
||||
Loading…
Reference in a new issue