UNPKG

525 BJavaScriptView Raw
1var expect = require('./createTopLevelExpect')()
2 .use(require('./styles'))
3 .use(require('./types'))
4 .use(require('./assertions'))
5 .freeze();
6
7// Add an inspect method to all the promises we return that will make the REPL, console.log, and util.inspect render it nicely in node.js:
8require('unexpected-bluebird').prototype[
9 require('./nodeJsCustomInspect')
10] = function() {
11 return expect
12 .createOutput(require('magicpen').defaultFormat)
13 .appendInspected(this)
14 .toString();
15};
16
17module.exports = expect;