var Helper = require('../helper');

var MiwgHelper = require('../miwg-helper');

var describeSuite = Helper.describeSuite;


function validateSchema(results, done) {

  try {
    this.validateBasic(results);
    return this.validateBpmn20(results, done);
  } catch (e) {
    return done(e);
  }
}


var miwgReferenceDirectory = MiwgHelper.resourcePath('Reference');


describeSuite('bpmn-miwg-test-suite', miwgReferenceDirectory, validateSchema);
var Helper = require('../helper');

var MiwgHelper = require('../miwg-helper');

var describeSuite = Helper.describeSuite;


function validateSchema(results, done) {

  try {
    this.validateBasic(results);
    return this.validateBpmn20(results, done);
  } catch (e) {
    return done(e);
  }
}


var miwgReferenceDirectory = MiwgHelper.resourcePath('Reference');


describeSuite(
  'bpmn-miwg-test-suite',
  miwgReferenceDirectory,
  validateSchema,
  { timeout: 10000 }
);
increase timeout to 10 seconds