@@ -95,7 +95,6 @@ define(
95
95
]
96
96
) ;
97
97
} ) ;
98
- it ( "should sort things right - the order looks wrong below" ) ;
99
98
it ( "should sort the events within the location by the date of the start_time" , function ( ) {
100
99
var result = this . events . combineEventsAtTheSamePlace ( [ {
101
100
location : [ [ 10 , - 20 ] ] ,
@@ -112,13 +111,13 @@ define(
112
111
[
113
112
{
114
113
location : [ [ 10 , - 20 ] ] ,
115
- start_date : "1900-01-03 00:02 "
114
+ start_date : "1900-01-01 00:00 "
116
115
} , {
117
116
location : [ [ 10 , - 20 ] ] ,
118
117
start_date : "1900-01-02 00:01"
119
118
} , {
120
119
location : [ [ 10 , - 20 ] ] ,
121
- start_date : "1900-01-01 00:00 "
120
+ start_date : "1900-01-03 00:02 "
122
121
}
123
122
]
124
123
]
@@ -161,37 +160,37 @@ define(
161
160
[
162
161
{
163
162
location : [ [ 10 , - 20 ] ] ,
164
- start_date : "1900-01-01 00:00"
163
+ start_date : "1900-01-01T00: 00:00.000Z "
165
164
} , {
166
165
location : [ [ 10 , - 20 ] ] ,
167
- start_date : "1900-01-01 00 :01"
166
+ start_date : "1900-01-01T00 :01:00.000Z "
168
167
}
169
168
] ,
170
169
[
171
170
{
172
171
location : [ [ 10 , - 21 ] ] ,
173
- start_date : "1900-01-01 00 :01"
172
+ start_date : "1900-01-01T00 :01:00.000Z "
174
173
}
175
174
]
176
175
] ;
177
176
178
177
this . events . handleResults ( [ {
179
178
location : [ [ 10 , - 20 ] ] ,
180
- start_date : "1900-01-01 00:00"
179
+ start_date : "1900-01-01T00: 00:00.000Z "
181
180
} , {
182
181
location : [ [ 10 , - 20 ] ] ,
183
- start_date : "1900-01-01 00 :01"
182
+ start_date : "1900-01-01T00 :01:00.000Z "
184
183
} , {
185
184
location : [ [ 10 , - 22 ] ] ,
186
- start_date : "1900-01-01 00 :01"
185
+ start_date : "1900-01-01T00 :01:00.000Z "
187
186
} ] ) ;
188
187
189
188
//todo: why this mismatching double arrays around location?
190
189
this . lastReset [ 0 ] . should . eql ( [ JSON . stringify ( {
191
190
location : [ 10 , - 21 ] ,
192
191
events : [ {
193
192
location : [ [ 10 , - 21 ] ] ,
194
- start_date : "1900-01-01 00 :01"
193
+ start_date : "1900-01-01T00 :01:00.000Z "
195
194
} ]
196
195
} ) ] ) ;
197
196
@@ -201,37 +200,37 @@ define(
201
200
[
202
201
{
203
202
location : [ [ 10 , - 20 ] ] ,
204
- start_date : "1900-01-01 00:00"
203
+ start_date : "1900-01-01T00: 00:00.000Z "
205
204
} , {
206
205
location : [ [ 10 , - 20 ] ] ,
207
- start_date : "1900-01-01 00 :01"
206
+ start_date : "1900-01-01T00 :01:00.000Z "
208
207
}
209
208
] ,
210
209
[
211
210
{
212
211
location : [ [ 10 , - 21 ] ] ,
213
- start_date : "1900-01-01 00 :01"
212
+ start_date : "1900-01-01T00 :01:00.000Z "
214
213
}
215
214
]
216
215
] ;
217
216
218
217
this . events . handleResults ( [ {
219
218
location : [ [ 10 , - 20 ] ] ,
220
- start_date : "1900-01-01 00:00"
219
+ start_date : "1900-01-01T00: 00:00.000Z "
221
220
} , {
222
221
location : [ [ 10 , - 20 ] ] ,
223
- start_date : "1900-01-01 00 :01"
222
+ start_date : "1900-01-01T00 :01:00.000Z "
224
223
} , {
225
224
location : [ [ 10 , - 22 ] ] ,
226
- start_date : "1900-01-01 00 :01"
225
+ start_date : "1900-01-01T00 :01:00.000Z "
227
226
} ] ) ;
228
227
229
228
//todo: why this mismatching double arrays around location?
230
229
this . lastReset [ 1 ] . should . eql ( [ JSON . stringify ( {
231
230
location : [ 10 , - 22 ] ,
232
231
events : [ {
233
232
location : [ [ 10 , - 22 ] ] ,
234
- start_date : "1900-01-01 00 :01"
233
+ start_date : "1900-01-01T00 :01:00.000Z "
235
234
} ]
236
235
} ) ] ) ;
237
236
} ) ;
0 commit comments