source: frontend/node_modules/eslint-plugin-jsx-a11y/__tests__/src/util/getImplicitRole-test.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 380 bytes
Line 
1import test from 'tape';
2
3import getImplicitRole from '../../../src/util/getImplicitRole';
4
5test('getImplicitRole', (t) => {
6 t.equal(
7 getImplicitRole(
8 'li',
9 [],
10 ),
11 'listitem',
12 'has implicit, returns implicit role',
13 );
14
15 t.equal(
16 getImplicitRole(
17 'div',
18 [],
19 ),
20 null,
21 'lacks implicit, returns null',
22 );
23
24 t.end();
25});
Note: See TracBrowser for help on using the repository browser.