unexpected
Version:
Extensible BDD assertion toolkit
9 lines (8 loc) • 364 B
JavaScript
/*global window*/
var useFullStackTrace = false;
if (typeof window !== 'undefined' && typeof window.location !== 'undefined') {
useFullStackTrace = !!window.location.search.match(/[?&]full-trace=true(?:$|&)/);
} else if (typeof process !== 'undefined' && process.env.UNEXPECTED_FULL_TRACE) {
useFullStackTrace = true;
}
module.exports = useFullStackTrace;