const { jsdom } = require('jsdom');


// JSDom setup
global.document = jsdom('');
global.window = document.defaultView;

Object.keys(document.defaultView).forEach((prop) => {
  if (typeof global[prop] === 'undefined') {
    global[prop] = document.defaultView[prop];
  }
});

global.navigator = {
  userAgent: 'node.js'
};

require('babel-core/register')({
  ignore: /node_modules/,
});
const { jsdom } = require('jsdom');

// JSDom setup
global.document = jsdom('');
global.window = document.defaultView;

Object.keys(document.defaultView).forEach((prop) => {
  if (typeof global[prop] === 'undefined') {
    global[prop] = document.defaultView[prop];
  }
});

global.navigator = {
  userAgent: 'node.js',
};

module.exports = {
  singleLine(params) {
    return params[0].trim().replace(/\n */g, '');
  },
};

Add helper function to test-helper [skip ci]