Updated getDomainVisits action so that it expects a signle DTO param

This commit is contained in:
Alejandro Celaya
2022-11-12 09:18:37 +01:00
parent 32f7374d92
commit 3b96b89492
20 changed files with 68 additions and 57 deletions

View File

@@ -38,7 +38,7 @@ describe('<DomainVisits />', () => {
it('wraps visits stats and header', () => {
setUp();
expect(screen.getByRole('heading', { name: '"foo.com" visits' })).toBeInTheDocument();
expect(getDomainVisits).toHaveBeenCalledWith('DEFAULT', expect.anything(), expect.anything());
expect(getDomainVisits).toHaveBeenCalledWith(expect.objectContaining({ domain: 'DEFAULT' }));
});
it('exports visits when clicking the button', async () => {