13 lines
208 B
JavaScript
13 lines
208 B
JavaScript
![]() |
let __err = null;
|
||
|
let __user = null;
|
||
|
|
||
|
export default {
|
||
|
__setFindById(err, user) {
|
||
|
__err = err;
|
||
|
__user = user;
|
||
|
},
|
||
|
findById: jest.fn(async (id, callback) => {
|
||
|
callback(__err, __user);
|
||
|
})
|
||
|
};
|