bootstrap-vue
Version:
BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.
15 lines (12 loc) • 511 B
JavaScript
import {loadFixture, testVM} from '../../../tests/utils'
describe('navbar', async () => {
beforeEach(loadFixture(__dirname, 'navbar'))
testVM()
it('should have custom toggle class in nav-item-dropdown', async () => {
const { app: { $refs } } = window
const extraClass = $refs.extraToggleClasses
expect(extraClass).toBeDefined()
expect(extraClass.$refs.toggle).toBeDefined()
expect(extraClass.$refs.toggle).toHaveAllClasses(['nav-link', 'dropdown-toggle', 'nav-link-custom'])
})
})