Files
ohif-viewer/platform/viewer/src/__tests__/globalSetup.js
T

9 lines
321 B
JavaScript
Raw Normal View History

2019-05-29 08:39:54 -04:00
const _ = require('lodash');
const originalConsoleError = console.error;
2019-04-25 16:44:41 -04:00
// JSDom's CSS Parser has limited support for certain features
// This supresses error warnings caused by it
console.error = function(msg) {
2019-05-29 08:39:54 -04:00
if (_.startsWith(msg, 'Error: Could not parse CSS stylesheet')) return;
originalConsoleError(msg);
};