getImplicitRole-test.js
476 Bytes
/* eslint-env jest */
import getImplicitRole from '../../../src/util/getImplicitRole';
describe('getImplicitRole', () => {
describe('has implicit', () => {
it('should return the implicit role', () => {
expect(getImplicitRole(
'li',
[],
)).toBe('listitem');
});
});
describe('lacks implicit', () => {
it('should return null', () => {
expect(getImplicitRole(
'div',
[],
)).toBeNull();
});
});
});