vuematerial/vue-material

View on GitHub
src/components/MdBottomBar/MdBottomBar.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import mountTemplate from 'test/utils/mountTemplate'
import MdBottomBar from './MdBottomBar.vue'

test('should render the bottombar', async () => {
  const template = '<md-bottom-bar></md-bottom-bar>'
  const wrapper = await mountTemplate(MdBottomBar, template)

  expect(wrapper.hasClass('md-bottom-bar')).toBe(true)
})

test('should render the theme class', async () => {
  const template = '<md-bottom-bar md-theme="alt"></md-bottom-bar>'
  const wrapper = await mountTemplate(MdBottomBar, template)

  expect(wrapper.hasClass('md-theme-alt')).toBe(true)
})