dbashford / mimosa-testem-require

A fuller featured testem module for Mimosa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

global leak detected

solshark opened this issue · comments

15:21:11 - ERROR - 1 of 1 tests failed.
not ok 1 PhantomJS 1.9 - when the button is clicked and there is no value in the box, search should not be called
---
message: >
global leak detected: jQuery2030249079234898090360.2849408993497491

Simple test

define ['jquery'], 
($) ->
  describe 'when the button is clicked', ->
    it 'and there is no value in the box, search should not be called', ->
      expect(no).to.be.false

This is Mocha doing what it is supposed to and has nothing to do with mimosa.

Mimosa lets you configure the solution to this though: https://github.com/dbashford/MimosaWebAppSkeleton/blob/master/mimosa-config.js