Files
shields/lib/unhandled-rejection.spec.js
2018-01-14 16:57:40 -05:00

6 lines
166 B
JavaScript

'use strict';
// Cause unhandled promise rejections to fail unit tests, and print with stack
// traces.
process.on('unhandledRejection', error => { throw error; });