Skip to content

Commit

Permalink
Switch asertion to optional leading 1
Browse files Browse the repository at this point in the history
  • Loading branch information
matschaffer committed Jun 21, 2021
1 parent b434bf8 commit e2f351d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/public/lib/format_number.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('format_number', () => {
});

it('should format time in H:mm:ss', () => {
expect(formatNumber(1461868937000, 'time')).to.match(/\d\d?:\d\d:\d\d/);
expect(formatNumber(1461868937000, 'time')).to.match(/1?\d:\d\d:\d\d/);
});

it('should format integers with commas', () => {
Expand Down

0 comments on commit e2f351d

Please sign in to comment.