Lines Matching refs:expect
22 expect(scale.timeToPx(0)).toEqual(200);
23 expect(scale.timeToPx(100)).toEqual(1000);
24 expect(scale.timeToPx(50)).toEqual(600);
26 expect(scale.pxToTime(200)).toEqual(0);
27 expect(scale.pxToTime(1000)).toEqual(100);
28 expect(scale.pxToTime(600)).toEqual(50);
30 expect(scale.deltaPxToDuration(400)).toEqual(50);
32 expect(scale.timeInBounds(50)).toEqual(true);
33 expect(scale.timeInBounds(0)).toEqual(true);
34 expect(scale.timeInBounds(100)).toEqual(true);
35 expect(scale.timeInBounds(-1)).toEqual(false);
36 expect(scale.timeInBounds(101)).toEqual(false);
43 expect(scale.timeToPx(0)).toEqual(100);
46 expect(scale.timeToPx(0)).toEqual(200);
47 expect(scale.timeToPx(100)).toEqual(1000);
50 expect(scale.timeToPx(0)).toEqual(200);
51 expect(scale.timeToPx(100)).toEqual(600);
52 expect(scale.timeToPx(200)).toEqual(1000);
59 expect(newSpan.start).toEqual(5);
60 expect(newSpan.end).toEqual(15);
67 expect(newSpan.start).toEqual(1005);
68 expect(newSpan.end).toEqual(1015);
75 expect((newSpan.end - newSpan.start) / 2 + newSpan.start).toBeCloseTo(1010);
76 expect(newSpan.end - newSpan.start).toBeCloseTo(1e-4, 8);