                             });
                         });
                     });
-                """)
+                """, Bot)
             ).to.be.ok
 
         it 'should detect JSON', ->

expect = require("chai").expect
CodeFilter = require('../lib/filters/code')

describe 'filters/code', ->

    describe '#isCode()', ->

        it 'should let standart text pass', ->
            expect(CodeFilter.isCode('Salut les gens' )).to.not.be.ok

        it 'should let code pass on one line', ->
            expect(CodeFilter.isCode('vérifie les {} je pense que ça vient de là et j\'ai une <div> qui bloque !')).to.not.be.ok

        it 'should not catch pings', ->
            expect(CodeFilter.isCode('Woops trop de code <@89677831675604992> ! http://pastie.org/private/co2hxfz4o905tz6nyygqmg')).to.not.be.ok

        it 'should detect code based on }', ->
            expect(

                        </h1>
                    </div>
                </div>
            </div>""", Bot)
            ).to.be.ok