feat: adds discount code search functionality (#155)
This commit is contained in:
@@ -7,6 +7,7 @@ export default ({
|
||||
findOne,
|
||||
findOneOrFail,
|
||||
save,
|
||||
findAndCount,
|
||||
} = {}) => {
|
||||
return {
|
||||
create: jest.fn().mockImplementation((...args) => {
|
||||
@@ -63,5 +64,11 @@ export default ({
|
||||
}
|
||||
return Promise.resolve(...args);
|
||||
}),
|
||||
findAndCount: jest.fn().mockImplementation((...args) => {
|
||||
if (findAndCount) {
|
||||
return findAndCount(...args);
|
||||
}
|
||||
return {};
|
||||
}),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user