Create a gist now

Instantly share code, notes, and snippets.

cpadTDDMochaChaiBasics.js
const Mocha = require ('mocha')
const assert = require('chai').assert
const mocha = new Mocha ({ui: 'bdd'})
mocha.suite.emit('pre-require', this, 'solution', mocha)
describe('Test suite', () => {
it('should work', () => {
assert(true)
})
})
mocha.run(() => {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment