     selection = hx.select('#fixture').selectAll('span')
     appended = selection.append(document.createElement('h1'))
     appended.size().should.equal(0)
-    consoleWarn.should.have.been.called()
+    hx.consoleWarning.should.have.been.called()
 
   it 'appending an existing element to an empty selection should do nothing', ->
     selection = hx.select('#empty').select('span')

    hx.select('#fixture').selectAll('span').style('display', 'block').style('display')
    hx.select('#fixture').select('span').style('display', 'inline-block').style('display')

    consoleWarn = chai.spy.on(console, 'warn')

  afterEach ->
    hx.select('#fixture').remove()

describe 'Selection Api', ->
  beforeEach ->
    fixture = hx.select('body').append('div').attr('id', 'fixture').html """
      <div class="wrapper">
