text: 'use strict'
  
  var assert = require('assert')
    , core = require('../index')
    , Stanza = core.Stanza
    , Presence = core.Presence
  
  describe('Presence', function() {
  
      it('is an instanceof Stanza', function() {
          var s = new Presence()
          assert(s instanceof Stanza)
      })
  
      it('has "iq" as node name', function() {
          var s = new Presence()
          assert(s.is('presence'))
          assert.equal(s.nodeName, 'presence')
          assert.equal(s.name, 'presence')
      })
  
      it('passes attrs argument down to Stanza', function() {
          var s = new Presence({foo: 'bar'})
          assert.equal(s.attrs.foo, 'bar')
      })
  })
  
  
  