diff --git a/test/specs/add.book.test.ts b/test/specs/add.book.test.ts index 56e46d7..d47bd30 100644 --- a/test/specs/add.book.test.ts +++ b/test/specs/add.book.test.ts @@ -13,10 +13,16 @@ const data1: Record = { descriptionText: "This is not a book.", }; -const dates1: Record = { - published: "1987\t0615", // in form of keys to type - read: "2024\t0425", -}; +const dates1: Record = + process.platform === "win32" + ? { + published: "1987\t0615", // in form of keys to type + read: "2024\t0425", + } + : { + published: "06151987", + read: "04252024", + }; const tags1 = ["Some", "Tags"]; diff --git a/test/specs/edit.book.test.ts b/test/specs/edit.book.test.ts index b1ad41a..85caacf 100644 --- a/test/specs/edit.book.test.ts +++ b/test/specs/edit.book.test.ts @@ -29,15 +29,27 @@ const data2: Record = { notesText: "メモ", }; -const dates1: Record = { - published: "2001\t0101", // in form of keys to type - read: "2023\t0423", -}; - -const dates2: Record = { - published: "2002\t0602", - read: "2024\t0124", -}; +const dates1: Record = + process.platform === "win32" + ? { + published: "2001\t0101", // in form of keys to type + read: "2023\t0423", + } + : { + published: "01012001", + read: "04232023", + }; + +const dates2: Record = + process.platform === "win32" + ? { + published: "2002\t0602", + read: "2024\t0124", + } + : { + published: "06022002", + read: "01242024", + }; const tags1 = ["Non-Fiction", "Art"]; const tags2 = ["フィクション", "芸術"];