 
     it('default', ->
       @container.innerHTML = '<span style="font-size: 13px;">Text</span>'
-      format = new Quill.Format(Quill.Format.FORMATS.color)
+      format = new Quill.Format(document, Quill.Format.FORMATS.color)
       expect(format.match(@container.firstChild)).toBe(false)
     )
   )


    it('default', ->
      @container.innerHTML = '<span style="font-size: 13px;">Text</span>'
      format = new Quill.Format(Quill.Format.FORMATS.color)
      expect(format.value(@container.firstChild)).toBe(undefined)
    )
  )


    it('change value', ->
      @container.innerHTML = '<span style="color: blue;">Text</span>'
      format = new Quill.Format(document, Quill.Format.FORMATS.color)
      format.add(@container.firstChild, 'red')
      expect(@container).toEqualHTML('<span style="color: red;">Text</span>')
    )

    it('default value', ->
      @container.innerHTML = '<span>Text</span>'
      format = new Quill.Format(document, Quill.Format.FORMATS.size)
      format.add(@container.firstChild, Quill.Format.FORMATS.size.default)
      expect(@container).toEqualHTML('<span>Text</span>')
    )
