var argv = require('yargs').argv;

module.exports = {
  plugins: {
    istanbul: {
      dir: './coverage',
      reporters: ['text-summary', 'lcov'],
      include: [
        '**/vaadin-date-picker/src/*.html'
      ],
      exclude: [],
      thresholds: {
        global: {
          statements: 100
        }
      }
    }
  },

  registerHooks: function(context) {
    var saucelabsPlatforms = [
      // 'macOS 10.12/iphone@10.3',
      // 'macOS 10.12/ipad@10.3',
      'Windows 10/microsoftedge@15',
      'Windows 10/internet explorer@11',
      'macOS 10.12/safari@11.0',
      'macOS 9.3.2/iphone@9.3'
    ];

    var cronPlatforms = [
      'Windows 10/chrome@59',
      'Windows 10/firefox@54'
    ];

    if (argv.env === 'saucelabs') {
      context.options.plugins.sauce.browsers = saucelabsPlatforms;

    } else if (argv.env === 'saucelabs-cron') {
      context.options.plugins.sauce.browsers = cronPlatforms;
    }
  }
};

var argv = require('yargs').argv;

module.exports = {
  plugins: {
    istanbul: {
      dir: './coverage',
      reporters: ['text-summary', 'lcov'],
      include: [
        '**/vaadin-date-picker/src/*.html'
      ],
      exclude: [],
      thresholds: {
        global: {
          statements: 91
        }
      }
    }
  },

  registerHooks: function(context) {
    var saucelabsPlatforms = [
      // 'macOS 10.12/iphone@10.3',
      // 'macOS 10.12/ipad@10.3',
      'Windows 10/microsoftedge@15',
      'Windows 10/internet explorer@11',
      'macOS 10.12/safari@11.0',
      'macOS 9.3.2/iphone@9.3'
    ];

    var cronPlatforms = [
      'Windows 10/chrome@59',
      'Windows 10/firefox@54'
    ];

    if (argv.env === 'saucelabs') {
      context.options.plugins.sauce.browsers = saucelabsPlatforms;

    } else if (argv.env === 'saucelabs-cron') {
      context.options.plugins.sauce.browsers = cronPlatforms;
    }
  }
};

Set code coverage threshold to 91
Set code coverage threshold to 91
