Skip to content

Commit

Permalink
fixed misuse of null on updatedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Jan 3, 2020
1 parent 1fb5735 commit 2f50541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/alerting/server/routes/get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const mockedAlert = {
bar: true,
},
createdAt: new Date(),
updatedAt: null,
updatedAt: new Date(),
actions: [
{
group: 'default',
Expand Down

0 comments on commit 2f50541

Please sign in to comment.