import React from 'react'
import License from '../components/settings/License'
import { render, screen } from './test-utils'
describe('License screen', () => {
test('should display license text with correct year', async () => {
render()
const year = new Date().getFullYear().toString()
screen.getByText(year, { exact: false })
})
test('should match the snapshot', async () => {
const licenseScreen = render()
expect(licenseScreen).toMatchSnapshot()
})
})