luhn-generator
Version:
A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm
22 lines (20 loc) • 476 B
JavaScript
/* 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();
});
});
});