fix: Fix up my broken test reformatting
This commit is contained in:
committed by
mrugesh mohapatra
parent
a1f64f4b77
commit
730245e204
@ -25,31 +25,32 @@ describe('date utils', () => {
|
|||||||
).toEqual(1);
|
).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return 2 days when there is a 24 hours difference', () => {});
|
it('should return 2 days when there is a 24 hours difference', () => {
|
||||||
expect(
|
expect(
|
||||||
dayCount([
|
dayCount([
|
||||||
moment.utc('8/4/2015 2:00', 'M/D/YYYY H:mm').valueOf(),
|
moment.utc('8/4/2015 2:00', 'M/D/YYYY H:mm').valueOf(),
|
||||||
moment.utc('8/3/2015 2:00', 'M/D/YYYY H:mm').valueOf()
|
moment.utc('8/3/2015 2:00', 'M/D/YYYY H:mm').valueOf()
|
||||||
])
|
])
|
||||||
).toEqual(2);
|
).toEqual(2);
|
||||||
|
});
|
||||||
|
|
||||||
it(
|
it(
|
||||||
'should return 2 days when the diff is less than 24h but ' +
|
'should return 2 days when the diff is less than 24h but ' +
|
||||||
'different in UTC',
|
'different in UTC',
|
||||||
() => {}
|
() => {
|
||||||
);
|
|
||||||
expect(
|
expect(
|
||||||
dayCount([
|
dayCount([
|
||||||
moment.utc('8/4/2015 1:00', 'M/D/YYYY H:mm').valueOf(),
|
moment.utc('8/4/2015 1:00', 'M/D/YYYY H:mm').valueOf(),
|
||||||
moment.utc('8/3/2015 23:00', 'M/D/YYYY H:mm').valueOf()
|
moment.utc('8/3/2015 23:00', 'M/D/YYYY H:mm').valueOf()
|
||||||
])
|
])
|
||||||
).toEqual(2);
|
).toEqual(2);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
it(
|
it(
|
||||||
'should return 1 day when the diff is less than 24h ' +
|
'should return 1 day when the diff is less than 24h ' +
|
||||||
'and days are different in UTC, but given PST',
|
'and days are different in UTC, but given PST',
|
||||||
() => {}
|
() => {
|
||||||
);
|
|
||||||
expect(
|
expect(
|
||||||
dayCount(
|
dayCount(
|
||||||
[
|
[
|
||||||
@ -59,25 +60,29 @@ describe('date utils', () => {
|
|||||||
PST
|
PST
|
||||||
)
|
)
|
||||||
).toEqual(1);
|
).toEqual(1);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
it('should return correct count when there is very big period', () => {});
|
it('should return correct count when there is very big period', () => {
|
||||||
expect(
|
expect(
|
||||||
dayCount([
|
dayCount([
|
||||||
moment.utc('10/27/2015 1:00', 'M/D/YYYY H:mm').valueOf(),
|
moment.utc('10/27/2015 1:00', 'M/D/YYYY H:mm').valueOf(),
|
||||||
moment.utc('5/12/1982 1:00', 'M/D/YYYY H:mm').valueOf()
|
moment.utc('5/12/1982 1:00', 'M/D/YYYY H:mm').valueOf()
|
||||||
])
|
])
|
||||||
).toEqual(12222);
|
).toEqual(12222);
|
||||||
|
});
|
||||||
|
|
||||||
it(
|
it(
|
||||||
'should return 2 days when there is a 24 hours difference ' +
|
'should return 2 days when there is a 24 hours difference ' +
|
||||||
'between dates given `undefined` timezone',
|
'between dates given `undefined` timezone',
|
||||||
() => {}
|
() => {
|
||||||
);
|
|
||||||
expect(
|
expect(
|
||||||
dayCount([
|
dayCount([
|
||||||
moment.utc('8/4/2015 2:00', 'M/D/YYYY H:mm').valueOf(),
|
moment.utc('8/4/2015 2:00', 'M/D/YYYY H:mm').valueOf(),
|
||||||
moment.utc('8/3/2015 2:00', 'M/D/YYYY H:mm').valueOf()
|
moment.utc('8/3/2015 2:00', 'M/D/YYYY H:mm').valueOf()
|
||||||
])
|
])
|
||||||
).toEqual(2);
|
).toEqual(2);
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user