-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.js
111 lines (107 loc) · 2.31 KB
/
mocks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* Case 1
output = [
[ 2020-12-06T11:30:00.000Z, 2020-12-06T12:00:00.000Z ],
[ 2020-12-06T15:00:00.000Z, 2020-12-06T16:00:00.000Z ],
[ 2020-12-06T18:00:00.000Z, 2020-12-08T18:30:00.000Z ]
]
*/
exports.mockMap1 = new Map([
[
"John",
[
{
start: new Date(2020, 11, 6, 11, 0),
end: new Date(2020, 11, 6, 12, 30)
},
{
start: new Date(2020, 11, 6, 14, 0),
end: new Date(2020, 11, 6, 15, 0)
},
{
start: new Date(2020, 11, 6, 18, 0),
end: new Date(2020, 11, 6, 20, 0)
},
],
],
[
"Michael",
[
{
start: new Date(2020, 11, 6, 12, 0),
end: new Date(2020, 11, 6, 13, 30)
},
{
start: new Date(2020, 11, 6, 14, 30),
end: new Date(2020, 11, 6, 16, 30)
},
{
start: new Date(2020, 11, 6, 16, 30),
end: new Date(2020, 11, 6, 17, 0)
},
{
start: new Date(2020, 11, 6, 18, 0),
end: new Date(2020, 11, 6, 19, 0)
},
],
],
]
)
/* Case 2
output: [
[ 2020-12-06T11:00:00.000Z, 2020-12-06T11:30:00.000Z ],
[ 2020-12-06T13:35:00.000Z, 2020-12-08T18:30:00.000Z ]
]
*/
exports.mockMap2 = new Map([
[
"John",
[
{
start: new Date(2020, 11, 6, 11, 0),
end: new Date(2020, 11, 6, 12, 30)
},
{
start: new Date(2020, 11, 6, 11, 0),
end: new Date(2020, 11, 6, 12, 30)
},
{
start: new Date(2020, 11, 6, 14, 0),
end: new Date(2020, 11, 6, 15, 30)
},
],
],
[
"Michael",
[
{
start: new Date(2020, 11, 6, 12, 0),
end: new Date(2020, 11, 6, 13, 0)
},
{
start: new Date(2020, 11, 6, 13, 30),
end: new Date(2020, 11, 6, 14, 30)
},
],
],
[
"Jack",
[
{
start: new Date(2020, 11, 6, 10, 30),
end: new Date(2020, 11, 6, 11, 15)
},
{
start: new Date(2020, 11, 6, 13, 45),
end: new Date(2020, 11, 6, 14, 30)
},
{
start: new Date(2020, 11, 6, 15, 0),
end: new Date(2020, 11, 6, 15, 30)
},
{
start: new Date(2020, 11, 6, 15, 31),
end: new Date(2020, 11, 6, 15, 35)
},
],
],
]);