         friendlyName: name
       , (e ,r, b) ->
         if e then return done e
+        console.log b
         b.should.be.an.Object
         b.statusCode.should.equal '000000'
         b.SubAccount.should.be.an.Object

describe 'api', ->
  api = null
  before ->
    api = create
      accountSid: config.accountSid
      authToken: config.authToken
      appId: config.appId

    #       b.statusCode.should.equal '000000'
    #       done()
  # getSubAccounts
  # describe 'getSubAccounts', ->
  #   it 'should return subaccounts', (done) ->
  #     api.getSubAccounts (e, r, b) ->
  #       if e then return done e
  #       b.statusCode.should.equal '000000'
  #       b.SubAccount.should.be.an.Array
  #       if b.SubAccount.length > 0
  #         b.SubAccount[0].should.have.keys [
  #           'subAccountSid', 'voipAccount', 'dateCreated',
  #           'friendlyName', 'voipPwd', 'subToken'
  #         ]
  #       done()
  # querySubAccountByName
  # billRecords

