chore: remove jest -> cypress for unit tests

This commit is contained in:
Divlo committed 2022-07-28 22:51:12 +02:00
1 parent 8bc1471cbb
commit 1f4aa54211
33 files changed
+187 -4372

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
import { getAge } from '../getAge'
describe('utils/getAge', () => {
it('should calculate the right age of a person', () => {
const birthDate = new Date('1980-02-20')
jest.useFakeTimers().setSystemTime(new Date('2018-03-20'))
expect(getAge(birthDate)).toBe(38)
})
it('should calculate the right age of a person (taking into account the months)', () => {
const birthDate = new Date('1980-07-20')
jest.useFakeTimers().setSystemTime(new Date('2018-03-20'))
expect(getAge(birthDate)).toBe(37)
})
})