luhmann/hired

View on GitHub
src/components/molecules/__tests__/ClockIn.spec.tsx

Summary

Maintainability
B
4 hrs
Test Coverage
import * as React from 'react'
import { mount } from 'enzyme'

import ClockIn from '../ClockIn'

describe('ClockIn', () => {
  it('should render in idle-state', () => {
    const subject = mount(
      <ClockIn
        running={false}
        startEntry={() => {}}
        stopEntry={() => {}}
      />
    )

    expect(subject).toMatchSnapshot()
  })

  it('should render in running-state', () => {
    const subject = mount(
      <ClockIn
        running={true}
        startEntry={() => {}}
        stopEntry={() => {}}
      />
    )

    expect(subject).toMatchSnapshot()
  })
})