From dfaf076bf26edee17bd9384254f9936dcf40ea89 Mon Sep 17 00:00:00 2001 From: steelbrain Date: Mon, 4 Jan 2016 00:06:08 -0700 Subject: [PATCH] :fire: Remove createElement specifications --- spec/helper-spec.coffee | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/spec/helper-spec.coffee b/spec/helper-spec.coffee index c89606a..4450580 100644 --- a/spec/helper-spec.coffee +++ b/spec/helper-spec.coffee @@ -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)