From 93effc32b148e6ed371ef6e36470f50c75b97154 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 25 Aug 2024 13:48:07 +0200 Subject: [PATCH] dev: Fix test on CI Stupid timezone issues --- test/note_test.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/note_test.dart b/test/note_test.dart index 98aca5d5..91a275a0 100644 --- a/test/note_test.dart +++ b/test/note_test.dart @@ -341,8 +341,14 @@ Hello var note = await NoteStorage.load(file, parentFolder); parentFolder.add(note); - expect(note.modified, DateTime.parse('2022-07-14')); - expect(note.created, DateTime.parse('2024-07-14')); + // Doing this to avoid timezone issues + expect(note.modified.year, 2022); + expect(note.modified.month, 7); + expect(note.modified.day, 14); + + expect(note.created.year, 2024); + expect(note.created.month, 7); + expect(note.created.day, 14); note = note.copyWith( modified: DateTime.parse('2022-08-15'),