luhmann/hired

View on GitHub
src/constants/__tests__/i18n.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { translate } from '../i18n'

describe('i18n', () => {
  it('should return the correct string for an existing key', () => {
    expect(translate('entryList.empty')).toMatchSnapshot()
  })

  it('should return empty string for an unknown key', () => {
    expect(translate('foo.bar.buzz')).toBe('')
  })
})