From a9ccdc2fb94126a24819b9ca0f1891a4cf3836a3 Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Wed, 4 Sep 2024 18:04:04 +0200 Subject: [PATCH] test(orm): format the date to ISO --- test/orm/model_has_many.spec.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/orm/model_has_many.spec.ts b/test/orm/model_has_many.spec.ts index c275a220..730e246c 100644 --- a/test/orm/model_has_many.spec.ts +++ b/test/orm/model_has_many.spec.ts @@ -3729,27 +3729,27 @@ if (process.env.DB !== 'mysql_legacy') { { user_id: user0.id, title: 'Adonis 101', - created_at: now, + created_at: now.toISO(), }, { user_id: user0.id, title: 'Adonis 102', - created_at: now.plus({ seconds: 1 }), + created_at: now.plus({ seconds: 1 }).toISO(), }, { user_id: user0.id, title: 'Adonis 103', - created_at: now.plus({ seconds: 2 }), + created_at: now.plus({ seconds: 2 }).toISO(), }, { user_id: user0.id, title: 'Adonis 104', - created_at: now.plus({ seconds: 3 }), + created_at: now.plus({ seconds: 3 }).toISO(), }, { user_id: user0.id, title: 'Adonis 105', - created_at: now.plus({ seconds: 4 }), + created_at: now.plus({ seconds: 4 }).toISO(), }, ]) @@ -3763,27 +3763,27 @@ if (process.env.DB !== 'mysql_legacy') { { user_id: user1.id, title: 'Lucid 101', - created_at: now, + created_at: now.toISO(), }, { user_id: user1.id, title: 'Lucid 102', - created_at: now.plus({ seconds: 1 }), + created_at: now.plus({ seconds: 1 }).toISO(), }, { user_id: user1.id, title: 'Lucid 103', - created_at: now.plus({ seconds: 2 }), + created_at: now.plus({ seconds: 2 }).toISO(), }, { user_id: user1.id, title: 'Lucid 104', - created_at: now.plus({ seconds: 3 }), + created_at: now.plus({ seconds: 3 }).toISO(), }, { user_id: user1.id, title: 'Lucid 105', - created_at: now.plus({ seconds: 4 }), + created_at: now.plus({ seconds: 4 }).toISO(), }, ]) @@ -3805,7 +3805,7 @@ if (process.env.DB !== 'mysql_legacy') { assert.exists(users[1].posts[0].createdAt) assert.equal(users[1].posts[1].title, 'Lucid 102') assert.exists(users[1].posts[1].createdAt) - }) + }).pin() test('apply standard limit when not eagerloading', async ({ fs, assert }) => { const app = new AppFactory().create(fs.baseUrl, () => {})