mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-13 02:53:47 +00:00
Updated getDomainVisits action so that it expects a signle DTO param
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user