Skip to content

Commit

Permalink
🔥 Remove createElement specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
steelbrain committed Jan 4, 2016
1 parent 444f6ca commit dfaf076
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions spec/helper-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -271,25 +271,3 @@ describe 'linter helpers', ->
return filePaths
).then (result) ->
expect(result.length).toBe(2)

describe '::createElement', ->
it 'works', ->
clicked = false
clickListener = -> clicked = true

el = helpers.createElement('div')
el.innerHTML = 'Some HTML'
expect(el.innerHTML).toBe('Some HTML')
el.appendChild(document.createElement('div'))
expect(el.children.length).toBe(1)

el.addEventListener('click', clickListener)

expect(clicked).toBe(false)
el.dispatchEvent(new MouseEvent('click'))
expect(clicked).toBe(true)

clicked = false
clonedEl = el.cloneNode(true)
clonedEl.dispatchEvent(new MouseEvent('click'))
expect(clicked).toBe(true)

0 comments on commit dfaf076

Please sign in to comment.