validate.test.js 504 B

12345678910111213141516171819
  1. /**
  2. * Module dependencies
  3. */
  4. var TEST_SUITE = require('../spec/validation.spec');
  5. var runSuite = require('../spec/helpers/run-suite');
  6. var toRunTestWith = require('./helpers/to-run-test-with');
  7. var expandSuite = require('../spec/helpers/expand-suite');
  8. var rttc = require('../');
  9. describe('.validate()', function (){
  10. // Take the array of tests and extend them with some derivative
  11. // tests automatically. Then run them.
  12. runSuite(expandSuite(TEST_SUITE), toRunTestWith(rttc.validate));
  13. });