Use correct moments format for Showing last us time instead of value test (#9923)

Fixes this issue:
PhantomJS 2.1.1 (Mac OS X 0.0.0) SingleStatCtrl showing last us time
instead of value should set formatted value FAILED
	expected '09/17/2017 4:56:37 pm' to equal '09/17/2017 16:56:37 pm'
This commit is contained in:
Maytee Chinavanichkit 2017-11-20 18:00:56 +09:00 committed by Torkel Ödegaard
parent 3351f959d0
commit c1e5f5be87

View File

@ -104,7 +104,7 @@ describe('SingleStatCtrl', function() {
});
it('should set formatted value', function() {
expect(ctx.data.valueFormatted).to.be(moment(1505634997920).format('MM/DD/YYYY H:mm:ss a'));
expect(ctx.data.valueFormatted).to.be(moment(1505634997920).format('MM/DD/YYYY h:mm:ss a'));
});
});