mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-05-29 16:46:16 +00:00
Ensured new visits are prepended and not appended, ensuring they keep the proper order
This commit is contained in:
@@ -66,9 +66,9 @@ describe('shortUrlVisitsReducer', () => {
|
||||
});
|
||||
|
||||
it.each([
|
||||
[{ shortCode: 'abc123' }, [ ...visitsMocks, {}]],
|
||||
[{ shortCode: 'abc123' }, [{}, ...visitsMocks ]],
|
||||
[{ shortCode: 'def456' }, visitsMocks ],
|
||||
])('appends a new visit on CREATE_VISIT', (state, expectedVisits) => {
|
||||
])('prepends new visits on CREATE_VISIT', (state, expectedVisits) => {
|
||||
const shortUrl = {
|
||||
shortCode: 'abc123',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user