       date: 2
       val: 'blabla'
     ]
-    sparklinesSelection = createSparklinesSelection SAMPLE_INVALID_DATA
+    sparklinesSelection = createSparklinesSelection @DOMElement, SAMPLE_INVALID_DATA
     (-> sparklinesSelection.call @sparklines)
     .should.throw Error
   return


      describe 'when unordered', ->
        beforeEach ->
          @sparklinesSelection = createSparklinesSelection SAMPLE_DATA_WITH_UNORDERED_DATES
          @sparklinesSelection.call @dateSparklines

        it 'should display dates in the correct order', ->

describe 'd3.toucan.sparklines', ->
  SAMPLE_DATA = [
    label: 'A'
    date: 1
