       @callback.calledWith(fn).should.be.true
 
     it 'should accept optional', ->
-      wrapped = varity
+      wrapped = $
         type: 'Object'
         optional: true
       ,

      @callback.calledWith(undefined).should.be.true

    it 'should accept a mix of objects', ->
      wrapped = varity
        type: 'Array'
      ,
        type: 'Object'

  describe '#reset', ->
    it 'should restore the defaults', ->
      callback2 = sinon.spy()
      $.configure
        letters:
          'A': 'Apples'
      wrapped = $ ' A', @callback
      wrapped []
      @callback.calledWith(undefined).should.be.true
      $.reset()
      wrapped2 = $ ' A', callback2
      arr = []
      wrapped2 arr
      callback2.calledWith(arr).should.be.true
