 
 describe 'el', ->
   it 'can create div by default', ->
-    expect(el().tagName).to.be.equal('DIV')
+    expect(el().tagName).to.equal('DIV')
 
   it 'can create an input field', ->
-    expect(el('input').tagName).to.be.equal('INPUT')
+    expect(el('input').tagName).to.equal('INPUT')
 
   it 'can create a span', ->
-    expect(el('span').tagName).to.be.equal('SPAN')
+    expect(el('span').tagName).to.equal('SPAN')
 
   it 'does not add id attribute by default', ->
     expect(el().hasAttribute('id')).to.be.false


describe 'el.getAttr', ->
  it 'can get element id', ->
    expect(el.getAttr(el('#some-id'), 'id')).to.be.equal('some-id')

  it 'can get element className', ->
    expect(el.getAttr(el('.class1.class2'), 'className'))
      .to.be.equal('class1 class2')

  it 'can get element innerHTML with html', ->
    element = el()
    el.setAttr(element, 'html', '<em>foo</em> bar')
    expect(el.getAttr(element, 'html')).to.be.equal('<em>foo</em> bar')

  it 'can get element text content with text', ->
    element = el()
    el.setAttr(element, 'html', '<em>foo</em> bar')
    expect(el.getAttr(element, 'text')).to.be.equal('foo bar')


describe 'el.text', ->
  it 'can create a text node', ->
    node = el.text('foo')
    expect(node.nodeType).to.be.equal(document.TEXT_NODE)
    expect(node.textContent).to.be.equal('foo')

  it 'can be appended to regularly with el', ->
    element = el('div', el.text('foo'))
    expect(element.innerHTML).to.be.equal('foo')


describe 'el.registerPlugin', ->

    ]
    el.registerPlugin((child) -> children.shift())
    expect(el('div', [ 'foo', 'bar' ]).innerHTML)
      .to.equal('<span>baz</span><span>quux</span>')


describe 'el.resetPlugins', ->
