test: rename tests

This commit is contained in:
Kim, Jimin 2023-07-30 18:40:57 +09:00
parent 7cbb07fd67
commit a8c533c648
Signed by: pomp
GPG key ID: CE1DDB8A4A765403

View file

@ -4,7 +4,7 @@ const { birth, dateFormatOption, getAge, ageInt, ageDecimal, isOverBirthDay } =
testing testing
describe("getAge tests", () => { describe("getAge tests", () => {
test("birthday should be 2002-07-30", () => { test("birthday to be 2002-07-30", () => {
expect(birth).toEqual(new Date("2002-07-30, 00:00:00.000 +09:00")) expect(birth).toEqual(new Date("2002-07-30, 00:00:00.000 +09:00"))
}) })
@ -42,7 +42,7 @@ describe("getAge tests", () => {
).toEqual(false) ).toEqual(false)
}) })
test("dateFormatOption should work properly", () => { test("dateFormatOption to work properly", () => {
expect( expect(
new Date("2002-07-30, 00:00:00.000 +09:00").toLocaleString( new Date("2002-07-30, 00:00:00.000 +09:00").toLocaleString(
"en-US", "en-US",