'use strict';

const expect        = require('../../helpers/expect');

const ValidatePlatforms = require('../../../src/utils/validate-platforms');

describe('ValidatePlatforms', () => {
  context('when platforms contain valid platforms', () => {
    it('returns true', () => {
      const platforms = ['all', 'ios', 'android', 'blackberry', 'windows'];

      expect(ValidatePlatforms(platforms)).to.equal(true);
    });
  });

  context('when platforms contain invalid platforms', () => {
    it('returns false', () => {
      const platforms = ['symbian'];

      expect(ValidatePlatforms(platforms)).to.equal(false);
    });
  });
});

'use strict';

const expect        = require('../../helpers/expect');

const ValidatePlatforms = require('../../../src/utils/validate-platforms');

describe('ValidatePlatforms', () => {
  context('when platforms contain valid platforms', () => {
    const platforms = ['all', 'ios', 'android', 'blackberry', 'windows'];

    it('returns true', () => {
      expect(ValidatePlatforms(platforms)).to.equal(true);
    });
  });

  context('when platforms contain invalid platforms', () => {
    const platforms = ['symbian'];

    it('returns false', () => {
      expect(ValidatePlatforms(platforms)).to.equal(false);
    });
  });
});

Update test to move context code to context block
style(validate-platforms): Update test to move context code to context block
