From 635ee6c5ebe76d2aab0d3d2cf1df5c49504c0025 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 2 Jul 2021 19:57:25 +0200 Subject: [PATCH] Updated changelog --- CHANGELOG.md | 1 + test/visits/OrphanVisits.test.tsx | 1 - test/visits/reducers/orphanVisits.test.ts | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba0e8b7d..d27862e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), * [#430](https://github.com/shlinkio/shlink-web-client/pull/430) Added support to set new and existing short URLs as crawlable, when consuming Shlink >=2.7. ### Changed +* [#442](https://github.com/shlinkio/shlink-web-client/pull/442) Visits filtering now goes through the corresponding reducer. * [#337](https://github.com/shlinkio/shlink-web-client/pull/337) Replaced moment.js with date-fns. * [#360](https://github.com/shlinkio/shlink-web-client/pull/360) Changed component used to generate a tags selector, switching from `react-tagsinput`, which is no longer maintained, to `react-tag-autocomplete`. diff --git a/test/visits/OrphanVisits.test.tsx b/test/visits/OrphanVisits.test.tsx index e980c4fa..99fef93e 100644 --- a/test/visits/OrphanVisits.test.tsx +++ b/test/visits/OrphanVisits.test.tsx @@ -37,7 +37,6 @@ describe('', () => { expect(stats).toHaveLength(1); expect(header).toHaveLength(1); - expect(stats.prop('getVisits')).toEqual(getOrphanVisits); expect(stats.prop('cancelGetVisits')).toEqual(cancelGetOrphanVisits); expect(stats.prop('visitsInfo')).toEqual(orphanVisits); expect(stats.prop('baseUrl')).toEqual('the_base_url'); diff --git a/test/visits/reducers/orphanVisits.test.ts b/test/visits/reducers/orphanVisits.test.ts index 2dddf73c..75fe7253 100644 --- a/test/visits/reducers/orphanVisits.test.ts +++ b/test/visits/reducers/orphanVisits.test.ts @@ -110,9 +110,9 @@ describe('orphanVisitsReducer', () => { [ undefined ], [{}], ])('dispatches start and success when promise is resolved', async (query) => { - const visits = visitsMocks; + const visits = visitsMocks.map((visit) => ({ ...visit, visitedUrl: '' })); const ShlinkApiClient = buildApiClientMock(Promise.resolve({ - data: visitsMocks, + data: visits, pagination: { currentPage: 1, pagesCount: 1,