Skip to content

Commit 5b373e6

Browse files
committed
undo changes done to employer list
1 parent 513618c commit 5b373e6

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

src/Components/forms/data.json

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,32 +48,9 @@
4848
],
4949

5050
"employerList": [
51-
{ "name": "BBC", "_id": "BBC" },
52-
{ "name": "Bet365", "_id": "Bet365" },
53-
{ "name": "Blue Frontier", "_id": "Blue Frontier" },
54-
{ "name": "EngineerBetter", "_id": "EngineerBetter" },
55-
{ "name": "Brandwatch", "_id": "Brandwatch" },
56-
{ "name": "Equal Experts", "_id": "Equal Experts" },
57-
{ "name": "Infobip", "_id": "Infobip" },
58-
{ "name": "Synaptik Digital", "_id": "Synaptik Digital" },
59-
{ "name": "Tata Consultancy services", "_id": "Tata Consultancy services" },
6051
{ "name": "2I", "_id": "2I" },
61-
{ "name": "Tamarix Tech", "_id": "Tamarix Tech" },
62-
{ "name": "Inspired Gaming Group", "_id": "Inspired Gaming Group" },
63-
{ "name": "EPAM System", "_id": "EPAM System" },
64-
{ "name": "Blueprint Gaming", "_id": "Blueprint Gaming" },
65-
{ "name": "Beamery", "_id": "Beamery" },
66-
{ "name": "American Express ", "_id": "American Express " },
67-
{
68-
"name": "Amazon Web Services (AWS)",
69-
"_id": "Amazon Web Services (AWS)"
70-
},
7152
{ "name": "Adyen", "_id": "Adyen" },
72-
{ "name": "Alpha FX Group", "_id": "Alpha FX Group" },
73-
{ "name": "Amazon", "_id": "Amazon" },
74-
{ "name": "Anaplan", "_id": "Anaplan" },
7553
{ "name": "And Digital", "_id": "And Digital" },
76-
{ "name": "Alfa Financial Software", "_id": "Alfa Financial Software" },
7754
{ "name": "Apolitical", "_id": "Apolitical" },
7855
{ "name": "Arnold Clark", "_id": "Arnold Clark" },
7956
{ "name": "Avanade", "_id": "Avanade" },

src/Components/forms/inputs/EmployerDropDown.test.js

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,39 @@
11
import '@testing-library/jest-dom'
22
import { render, screen } from '@testing-library/react'
33
import userEvent from '@testing-library/user-event'
4-
import exampleData from '../data.json'
54
import EmployerDropDown from './EmployerDropDown'
6-
5+
const employerList = [
6+
{ name: 'BBC', _id: 'BBC' },
7+
{ name: 'Bet365', _id: 'Bet365' },
8+
{ name: 'Blue Frontier', _id: 'Blue Frontier' },
9+
{ name: 'EngineerBetter', _id: 'EngineerBetter' },
10+
{ name: 'Brandwatch', _id: 'Brandwatch' },
11+
{ name: 'Equal Experts', _id: 'Equal Experts' },
12+
{ name: 'Infobip', _id: 'Infobip' },
13+
{ name: 'Synaptik Digital', _id: 'Synaptik Digital' },
14+
{ name: 'Tata Consultancy services', _id: 'Tata Consultancy services' },
15+
{ name: 'Tamarix Tech', _id: 'Tamarix Tech' },
16+
{ name: 'Inspired Gaming Group', _id: 'Inspired Gaming Group' },
17+
{ name: 'EPAM System', _id: 'EPAM System' },
18+
{ name: 'Blueprint Gaming', _id: 'Blueprint Gaming' },
19+
{ name: 'Beamery', _id: 'Beamery' },
20+
{ name: 'American Express ', _id: 'American Express ' },
21+
{ name: 'Capgemini', _id: 'Capgemini' },
22+
{
23+
name: 'Amazon Web Services (AWS)',
24+
_id: 'Amazon Web Services (AWS)'
25+
},
26+
{ name: 'Alpha FX Group', _id: 'Alpha FX Group' },
27+
{ name: 'Amazon', _id: 'Amazon' },
28+
{ name: 'Anaplan', _id: 'Anaplan' },
29+
{ name: 'Alfa Financial Software', _id: 'Alfa Financial Software' }
30+
]
731
describe('EmployerDropDown', () => {
832
it('shows a matching option for specific word', async () => {
933
const user = userEvent.setup()
1034
render(
1135
<EmployerDropDown
12-
arrayList={exampleData.employerList}
36+
arrayList={employerList}
1337
employerOnChange={() => {}}
1438
isEmpty={false}
1539
/>
@@ -28,7 +52,7 @@ describe('EmployerDropDown', () => {
2852
const user = userEvent.setup()
2953
render(
3054
<EmployerDropDown
31-
arrayList={exampleData.employerList}
55+
arrayList={employerList}
3256
employerOnChange={() => {}}
3357
isEmpty={false}
3458
/>

0 commit comments

Comments
 (0)