 
   Simulate = React.addons.TestUtils.Simulate
   FilePreview = stubRouterContext FilePreviewComponent
+  wrapper = null
 
   module 'File Preview Rendering',
     setup: ->

      @filesCollection.add(@file3)
      @currentFolder = new Folder()
      @currentFolder.files = @filesCollection
      @div = $('<div>').appendTo('body')[0]

      Modal.setAppElement(@div)



     teardown: ->
       React.unmountComponentAtNode(@div)
       wrapper.innerHTML = ""



