Skip to content

Instantly share code, notes, and snippets.

@kossnocorp
Created March 22, 2014 08:38
Show Gist options
  • Save kossnocorp/9703295 to your computer and use it in GitHub Desktop.
Save kossnocorp/9703295 to your computer and use it in GitHub Desktop.
describe 'TargetClass', ->
beforeEach ->
@domState = $('*')
afterEach ->
$('*').each (i, el) =>
$(el).remove() if @domState.filter(el).length is 0
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment