reset mock fn

This commit is contained in:
Ben Irvin 2022-07-26 09:17:50 +02:00
parent d5712d7693
commit cead6cce88

View File

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