Skip to content

Commit

Permalink
Updated tests with nameChanges.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
Afgan0r committed Oct 10, 2024
1 parent 3d85dee commit 8cf9549
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions src/!tests/unit-tests/0 - utils/namesHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ import { prepareNamesList } from '../../../0 - utils/namesHelper/prepareNamesLis
import generateNameChangeItem from '../../utils/generators/generateNameChangeItem';

const exampleNamesChanges = [
generateNameChangeItem('Parker', 'morpex', '12.11.2022 06:21'),
generateNameChangeItem('Parker', 'morpex', '12.11.2022 6:21'),
generateNameChangeItem('morpex', 'Parker', '26.12.2022 22:01'),

generateNameChangeItem('Markovnik', 'borigen', '09.04.2023 01:03'),
generateNameChangeItem('Markovnik', 'borigen', '09.04.2023 1:03'),

generateNameChangeItem('callisto1', 'Outkast', '20.12.2022 15:45'),
generateNameChangeItem('Outkast', 'kanistra', '30.06.2023 11:29'),
generateNameChangeItem('kanistra', 'AllCash', '01.09.2023 13:22'),

generateNameChangeItem('neon', 'beda', '03.02.2023 05:05'),
generateNameChangeItem('Londor', 'neon', '03.03.2023 05:05'),
generateNameChangeItem('neon', 'londor', '03.04.2023 05:05'),
generateNameChangeItem('beda', 'neon', '03.05.2023 05:05'),
generateNameChangeItem('neon', 'beda', '03.02.2023 5:05'),
generateNameChangeItem('Londor', 'neon', '03.03.2023 5:05'),
generateNameChangeItem('neon', 'londor', '03.04.2023 5:05'),
generateNameChangeItem('beda', 'neon', '03.05.2023 5:05'),
];

jest.mock('uuid', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ import {
} from './data/forGlobalStatisticsWithNameChanges';

const exampleNamesChanges = [
generateNameChangeItem('Parker', 'morpex', '12.11.2022 06:21'),
generateNameChangeItem('Parker', 'morpex', '12.11.2022 6:21'),
generateNameChangeItem('morpex', 'Parker', '26.12.2022 22:01'),

generateNameChangeItem('Markovnik', 'borigen', '09.04.2023 01:03'),
generateNameChangeItem('Markovnik', 'borigen', '09.04.2023 1:03'),

generateNameChangeItem('callisto1', 'Outkast', '20.12.2022 15:45'),
generateNameChangeItem('Outkast', 'kanistra', '30.06.2023 11:29'),
generateNameChangeItem('kanistra', 'AllCash', '01.09.2023 13:22'),

generateNameChangeItem('neon', 'beda', '03.02.2023 05:05'),
generateNameChangeItem('Londor', 'neon', '03.03.2023 05:05'),
generateNameChangeItem('neon', 'londor', '03.04.2023 05:05'),
generateNameChangeItem('beda', 'neon', '03.05.2023 05:05'),
generateNameChangeItem('neon', 'beda', '03.02.2023 5:05'),
generateNameChangeItem('Londor', 'neon', '03.03.2023 5:05'),
generateNameChangeItem('neon', 'londor', '03.04.2023 5:05'),
generateNameChangeItem('beda', 'neon', '03.05.2023 5:05'),
];

jest.mock('uuid', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ import {
} from './data/forSquadStatisticsWithNameChanges';

const exampleNamesChanges = [
generateNameChangeItem('Parker', 'morpex', '12.11.2022 03:00'),
generateNameChangeItem('morpex', 'Parker', '15.11.2022 03:00'),
generateNameChangeItem('Parker', 'morpex', '12.11.2022 3:00'),
generateNameChangeItem('morpex', 'Parker', '15.11.2022 3:00'),

generateNameChangeItem('Markovnik', 'borigen', '09.04.2023 03:00'),
generateNameChangeItem('Markovnik', 'borigen', '09.04.2023 3:00'),

generateNameChangeItem('callisto1', 'Outkast', '18.08.2023 03:00'),
generateNameChangeItem('Outkast', 'kanistra', '25.08.2023 03:00'),
generateNameChangeItem('kanistra', 'AllCash', '01.09.2023 03:00'),
generateNameChangeItem('callisto1', 'Outkast', '18.08.2023 3:00'),
generateNameChangeItem('Outkast', 'kanistra', '25.08.2023 3:00'),
generateNameChangeItem('kanistra', 'AllCash', '01.09.2023 3:00'),

generateNameChangeItem('neon', 'beda', '05.08.2023 03:00'),
generateNameChangeItem('Londor', 'neon', '05.08.2023 04:00'),
generateNameChangeItem('neon', 'londor', '07.08.2023 03:00'),
generateNameChangeItem('beda', 'neon', '08.08.2023 03:00'),
generateNameChangeItem('neon', 'beda', '05.08.2023 3:00'),
generateNameChangeItem('Londor', 'neon', '05.08.2023 4:00'),
generateNameChangeItem('neon', 'londor', '07.08.2023 3:00'),
generateNameChangeItem('beda', 'neon', '08.08.2023 3:00'),
];

jest.mock('uuid', () => {
Expand Down

0 comments on commit 8cf9549

Please sign in to comment.