p5.js-web-editor/server/models/__mocks__/user.js

13 lines
208 B
JavaScript
Raw Normal View History

2019-05-13 21:29:00 +02:00
let __err = null;
let __user = null;
export default {
__setFindById(err, user) {
__err = err;
__user = user;
},
findById: jest.fn(async (id, callback) => {
callback(__err, __user);
})
};