mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +00:00
reset mock fn
This commit is contained in:
parent
d5712d7693
commit
cead6cce88
@ -57,6 +57,7 @@ describe('Sanitize visitors util', () => {
|
||||
);
|
||||
expect(remove).toHaveBeenCalledWith(keyCreatedBy);
|
||||
|
||||
remove.mockClear();
|
||||
await rrr(
|
||||
{
|
||||
data,
|
||||
@ -66,7 +67,7 @@ describe('Sanitize visitors util', () => {
|
||||
},
|
||||
{ remove, set }
|
||||
);
|
||||
expect(remove).toHaveBeenCalledWith(keyCreatedBy);
|
||||
expect(remove).toHaveBeenCalledWith(keyUpdatedBy);
|
||||
|
||||
expect(set).toBeCalledTimes(0);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user