diff --git a/x-pack/legacy/plugins/alerting/server/routes/create.test.ts b/x-pack/legacy/plugins/alerting/server/routes/create.test.ts index 6c18deeee7580..51b9668b6131a 100644 --- a/x-pack/legacy/plugins/alerting/server/routes/create.test.ts +++ b/x-pack/legacy/plugins/alerting/server/routes/create.test.ts @@ -41,7 +41,7 @@ test('creates an alert with proper parameters', async () => { }; const createdAt = new Date(); - const updatedAt = null; + const updatedAt = new Date(); alertsClient.create.mockResolvedValueOnce({ ...mockedAlert, createdAt, diff --git a/x-pack/legacy/plugins/alerting/server/routes/get.test.ts b/x-pack/legacy/plugins/alerting/server/routes/get.test.ts index 7af3a11ee6d77..2ac7d257139f3 100644 --- a/x-pack/legacy/plugins/alerting/server/routes/get.test.ts +++ b/x-pack/legacy/plugins/alerting/server/routes/get.test.ts @@ -18,7 +18,7 @@ const mockedAlert = { bar: true, }, createdAt: new Date(), - updatedAt: null, + updatedAt: new Date(), actions: [ { group: 'default',