1

I can't get Mocha to produce output when using chai.assert. http://jsfiddle.net/web5me/244PT/6/

var assert = chai.assert();
mocha.setup('bdd');

describe('Kata', function() {
    it('should return...', function() {
        assert.equal(true, true, 'Truthy values should be treated equal.');
    });
});

mocha.run();

It works perfectly with chai.should and chai.expect. http://jsfiddle.net/web5me/244PT/#base

Marc Diethelm
  • 1,182
  • 1
  • 11
  • 15

1 Answers1

4

I think you are calling assert wrong, have you tried

var assert = chai.assert;
Andreas Köberle
  • 106,652
  • 57
  • 273
  • 297
Alen Genzić
  • 1,398
  • 10
  • 17