astro-ghostcms/.pnpm-store/v3/files/06/ac4ed40109a8d843009035df218...

22 lines
483 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
import expect from 'expect';
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();
});
});
});