1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

chore: better Prettier config for easier reviews

This commit is contained in:
2023-10-23 23:11:59 +02:00
parent c7ad15a465
commit e566ef6c38
105 changed files with 2138 additions and 2080 deletions

View File

@ -1,16 +1,16 @@
import { getAge } from '@/utils/getAge'
import { getAge } from "@/utils/getAge"
describe('utils/getAge', () => {
it('should calculate the right age of a person', () => {
cy.clock(new Date('2018-03-20')).then(() => {
const birthDate = new Date('1980-02-20')
describe("utils/getAge", () => {
it("should calculate the right age of a person", () => {
cy.clock(new Date("2018-03-20")).then(() => {
const birthDate = new Date("1980-02-20")
expect(getAge(birthDate)).equal(38)
})
})
it('should calculate the right age of a person (taking into account the months)', () => {
cy.clock(new Date('2018-03-20')).then(() => {
const birthDate = new Date('1980-07-20')
it("should calculate the right age of a person (taking into account the months)", () => {
cy.clock(new Date("2018-03-20")).then(() => {
const birthDate = new Date("1980-07-20")
expect(getAge(birthDate)).equal(37)
})
})