/ src / common / utils / categories.test.js
categories.test.js
 1  import categories from './categories'
 2  
 3  describe('categories', () => {
 4    test('it should return the correct data structure of categories', () => {
 5      expect(categories).toEqual([
 6        {
 7          key: 'EXCHANGES',
 8          value: 'Exchanges',
 9        },
10        {
11          key: 'MARKETPLACES',
12          value: 'Marketplaces',
13        },
14        {
15          key: 'COLLECTIBLES',
16          value: 'Collectibles',
17        },
18        {
19          key: 'GAMES',
20          value: 'Games',
21        },
22        {
23          key: 'SOCIAL_NETWORKS',
24          value: 'Social Networks',
25        },
26        {
27          key: 'UTILITIES',
28          value: 'Utilities',
29        },
30        {
31          key: 'OTHER',
32          value: 'Other',
33        },
34      ])
35    })
36  })