old_contents: var path = require('path');
  var transformTools = require('browserify-transform-tools');
  var constants = require('./constants');
  
  var pathToStrictD3Module = path.join(
      constants.pathToImageTest,
      'strict-d3.js'
  );
  
  /**
   * Transform `require('d3')` expressions to `require(/path/to/strict-d3.js)`
   */
  
  module.exports = transformTools.makeRequireTransform('requireTransform',
      { evaluateArguments: true, jsFilesOnly: true },
      function(args, opts, cb) {
          var pathIn = args[0];
          var pathOut;
  
          if(pathIn === 'd3' && opts.file !== pathToStrictD3Module) {
              pathOut = 'require(\'' + pathToStrictD3Module + '\')';
          }
  
          if(pathOut) return cb(null, pathOut);
          else return cb();
      });
  
new_contents: var path = require('path');
  var transformTools = require('browserify-transform-tools');
  var constants = require('./constants');
  
  var pathToStrictD3Module = path.join(
      constants.pathToImageTest,
      'strict-d3.js'
  );
  
  /**
   * Transform `require('d3')` expressions to `require(/path/to/strict-d3.js)`
   */
  
  module.exports = transformTools.makeRequireTransform('requireTransform',
      { evaluateArguments: true, jsFilesOnly: true },
      function(args, opts, cb) {
          var pathIn = args[0];
          var pathOut;
  
          if(pathIn === 'd3' && opts.file !== pathToStrictD3Module) {
              pathOut = 'require(' + JSON.stringify(pathToStrictD3Module) + ')';
          }
  
          if(pathOut) return cb(null, pathOut);
          else return cb();
      });
  
subject: Fix karma tests in windows