mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
check times remove is called
This commit is contained in:
parent
cead6cce88
commit
a499411086
@ -55,6 +55,7 @@ describe('Sanitize visitors util', () => {
|
||||
},
|
||||
{ remove, set }
|
||||
);
|
||||
expect(remove).toHaveBeenCalledTimes(1);
|
||||
expect(remove).toHaveBeenCalledWith(keyCreatedBy);
|
||||
|
||||
remove.mockClear();
|
||||
@ -67,6 +68,7 @@ describe('Sanitize visitors util', () => {
|
||||
},
|
||||
{ remove, set }
|
||||
);
|
||||
expect(remove).toHaveBeenCalledTimes(1);
|
||||
expect(remove).toHaveBeenCalledWith(keyUpdatedBy);
|
||||
|
||||
expect(set).toBeCalledTimes(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user