@@ -215,12 +215,28 @@ describe('Blips', function () {
215215 const existingCoords = [
216216 { coordinates : [ 500 , 400 ] , width : 22 } ,
217217 { coordinates : [ 200 , 200 ] , width : 22 } ,
218- { coordinates : [ 40 , 40 ] , width : 22 }
218+ { coordinates : [ 40 , 40 ] , width : 22 } ,
219219 ]
220220
221- expect ( sortBlipCoordinates ( existingCoords , 'first' ) ) . toEqual ( [ { "coordinates" : [ 200 , 200 ] , "width" : 22 } , { "coordinates" : [ 40 , 40 ] , "width" : 22 } , { "coordinates" : [ 500 , 400 ] , "width" : 22 } ] )
222- expect ( sortBlipCoordinates ( existingCoords , 'third' ) ) . toEqual ( [ { "coordinates" : [ 200 , 200 ] , "width" : 22 } , { "coordinates" : [ 40 , 40 ] , "width" : 22 } , { "coordinates" : [ 500 , 400 ] , "width" : 22 } ] )
223- expect ( sortBlipCoordinates ( existingCoords , 'second' ) ) . toEqual ( [ { "coordinates" : [ 500 , 400 ] , "width" : 22 } , { "coordinates" : [ 200 , 200 ] , "width" : 22 } , { "coordinates" : [ 40 , 40 ] , "width" : 22 } )
224- expect ( sortBlipCoordinates ( existingCoords , 'fourth' ) ) . toEqual ( [ { "coordinates" : [ 500 , 400 ] , "width" : 22 } , { "coordinates" : [ 200 , 200 ] , "width" : 22 } , { "coordinates" : [ 40 , 40 ] , "width" : 22 } )
221+ expect ( sortBlipCoordinates ( existingCoords , 'first' ) ) . toEqual ( [
222+ { coordinates : [ 200 , 200 ] , width : 22 } ,
223+ { coordinates : [ 40 , 40 ] , width : 22 } ,
224+ { coordinates : [ 500 , 400 ] , width : 22 } ,
225+ ] )
226+ expect ( sortBlipCoordinates ( existingCoords , 'third' ) ) . toEqual ( [
227+ { coordinates : [ 200 , 200 ] , width : 22 } ,
228+ { coordinates : [ 40 , 40 ] , width : 22 } ,
229+ { coordinates : [ 500 , 400 ] , width : 22 } ,
230+ ] )
231+ expect ( sortBlipCoordinates ( existingCoords , 'second' ) ) . toEqual ( [
232+ { coordinates : [ 500 , 400 ] , width : 22 } ,
233+ { coordinates : [ 200 , 200 ] , width : 22 } ,
234+ { coordinates : [ 40 , 40 ] , width : 22 } ,
235+ ] )
236+ expect ( sortBlipCoordinates ( existingCoords , 'fourth' ) ) . toEqual ( [
237+ { coordinates : [ 500 , 400 ] , width : 22 } ,
238+ { coordinates : [ 200 , 200 ] , width : 22 } ,
239+ { coordinates : [ 40 , 40 ] , width : 22 } ,
240+ ] )
225241 } )
226242} )
0 commit comments