mirror of
https://github.com/strapi/strapi.git
synced 2025-12-16 09:45:08 +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);
|
expect(remove).toHaveBeenCalledWith(keyCreatedBy);
|
||||||
|
|
||||||
|
remove.mockClear();
|
||||||
await rrr(
|
await rrr(
|
||||||
{
|
{
|
||||||
data,
|
data,
|
||||||
@ -66,7 +67,7 @@ describe('Sanitize visitors util', () => {
|
|||||||
},
|
},
|
||||||
{ remove, set }
|
{ remove, set }
|
||||||
);
|
);
|
||||||
expect(remove).toHaveBeenCalledWith(keyCreatedBy);
|
expect(remove).toHaveBeenCalledWith(keyUpdatedBy);
|
||||||
|
|
||||||
expect(set).toBeCalledTimes(0);
|
expect(set).toBeCalledTimes(0);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user