module.exports = config => {
  const customLaunchers = {
    'SL Chrome 26': {
      base: 'SauceLabs',
      browserName: 'chrome',
      version: '26'
    },
    'SL Edge 13': {
      base: 'SauceLabs',
      browserName: 'microsoftedge',
      version: '13'
    },
    'SL Firefox 4': {
      base: 'SauceLabs',
      browserName: 'firefox',
      version: '4'
    },
    'SL Internet Explorer 9': {
      base: 'SauceLabs',
      browserName: 'internet explorer',
      version: '9'
    },
    'SL iOS 8.1': {
      base: 'SauceLabs',
      browserName: 'iphone',
      version: '8.1'
    },
    'SL Safari 6': {
      base: 'SauceLabs',
      browserName: 'safari',
      version: '6'
    }
  };

  config.set({
    browserify: {
      debug: true
    },
    files: ['test.js'],
    frameworks: ['browserify', 'sinon', 'tape'],
    preprocessors: {
      'test.js': ['browserify']
    },
    reporters: ['dots']
  });

  if (!config.local) {
    config.set({
      browsers: Object.keys(customLaunchers),
      customLaunchers,
      reporters: [...config.reporters, 'saucelabs']
    });
  }
};

module.exports = config => {
  const customLaunchers = {
    'SL Chrome 26': {
      base: 'SauceLabs',
      browserName: 'chrome',
      platform: 'Linux',
      version: '26.0',
    },
    'SL Edge 13': {
      base: 'SauceLabs',
      browserName: 'MicrosoftEdge',
      platform: 'Windows 10',
      version: '13.10586',
    },
    'SL Firefox 4': {
      base: 'SauceLabs',
      browserName: 'firefox',
      platform: 'Linux',
      version: '4.0',
    },
    'SL Internet Explorer 9': {
      base: 'SauceLabs',
      browserName: 'internet explorer',
      platform: 'Windows 7',
      version: '9.0',
    },
    'SL Safari 8': {
      base: 'SauceLabs',
      browserName: 'safari',
      platform: 'OS X 10.10',
      version: '8.0',
    }
  };

  config.set({
    browserify: {
      debug: true
    },
    files: ['test.js'],
    frameworks: ['browserify', 'sinon', 'tape'],
    preprocessors: {
      'test.js': ['browserify']
    },
    reporters: ['dots']
  });

  if (!config.local) {
    config.set({
      browsers: Object.keys(customLaunchers),
      customLaunchers,
      reporters: [...config.reporters, 'saucelabs']
    });
  }
};

Adjust the browser definition to the ones that actually work
Adjust the browser definition to the ones that actually work
