import {createElementFromHTML} from '../../utils/dom.ts'; import {hideScopedEmptyDividers} from './dropdown.ts'; test('hideScopedEmptyDividers-simple', () => { const container = createElementFromHTML(`
a
b
`); hideScopedEmptyDividers(container); expect(container.innerHTML).toEqual(`
a
b
`); }); test('hideScopedEmptyDividers-hidden1', () => { const container = createElementFromHTML(`
a
b
`); hideScopedEmptyDividers(container); expect(container.innerHTML).toEqual(`
a
b
`); }); test('hideScopedEmptyDividers-hidden2', () => { const container = createElementFromHTML(`
a
b
c
`); hideScopedEmptyDividers(container); expect(container.innerHTML).toEqual(`
a
b
c
`); });