Skip to content

Commit

Permalink
Use human-readable timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Sep 14, 2020
1 parent 98524d8 commit c98af53
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ export default function ApiTest({ getService }: FtrProviderContext) {
});

it('has the correct start date', () => {
expectSnapshot(first(errorRateResponse.erroneousTransactionsRate)?.x).toMatchInline(
`1598439600000`
);
expectSnapshot(
new Date(first(errorRateResponse.erroneousTransactionsRate)?.x ?? NaN).toISOString()
).toMatchInline(`"2020-08-26T11:00:00.000Z"`);
});

it('has the correct end date', () => {
expectSnapshot(last(errorRateResponse.erroneousTransactionsRate)?.x).toMatchInline(
`1598441400000`
);
expectSnapshot(
new Date(last(errorRateResponse.erroneousTransactionsRate)?.x ?? NaN).toISOString()
).toMatchInline(`"2020-08-26T11:30:00.000Z"`);
});

it('has the correct number of buckets', () => {
Expand Down

0 comments on commit c98af53

Please sign in to comment.