flaverr.omen.test.js 997 B

123456789101112131415161718
  1. describe('flaverr.omen()', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  2. describe('with `flaverr.omen()`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  3. it('should return an omen (Error instance)');
  4. it('should return an omen with `.name === \'Error\'`');
  5. it('should return `undefined` if process.env.NODE_ENV is set to "production"');
  6. it('should return an omen if process.env.NODE_ENV is set to "production" BUT process.env.DEBUG is set to anything truthy');
  7. });
  8. describe('with `flaverr.omen(caller)`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
  9. it('should return an omen (Error instance)');
  10. it('should return an omen with `.name === \'Error\'`');
  11. it('should return an omen with a properly modified stack trace');
  12. it('should return `undefined` if process.env.NODE_ENV is set to "production"');
  13. it('should return an omen if process.env.NODE_ENV is set to "production" BUT process.env.DEBUG is set to anything truthy');
  14. });
  15. });