p5.js-web-editor/server/models/__mocks__/user.js
2019-05-29 12:51:50 -04:00

12 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);
})
};