This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Track the touches | |
let touches = { | |
start: [], | |
end: [], | |
}; | |
// 2. When the touch events end, calculate if its pinching inwards or outwards | |
const handleTouchEnd = () => { | |
if (touches.start.length === 0 || touches.end.length === 0) { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jest tests | |
describe("getTickValues method", () => { | |
const dispformat = "DD-MMM-YYYY hh:mm"; | |
beforeAll(() => { | |
moment.tz.setDefault("Europe/London"); | |
}); | |
it("generates tick values with DST", () => { |