text: 'use strict';
  
  var validate = require('lib/provider/activiti/element-templates/util/validate');
  
  
  describe('element-templates/util - validate', function() {
  
    it('should return validation errors only', function() {
  
      // given
      var templateDescriptors = require('../fixtures/error-property-invalid');
  
      // when
      var errors = validate(templateDescriptors);
  
      // then
      expect(errors).to.have.length(2);
  
      expect(errors[0] instanceof Error).to.be.true;
    });
  
  });