index.js 365 B

1234567891011121314151617181920
  1. 'use strict';
  2. var test = require('tape');
  3. var forEach = require('for-each');
  4. var shims = require('../');
  5. forEach(shims, function (shim) {
  6. var shimTests;
  7. try {
  8. shimTests = require('./' + shim); // eslint-disable-line global-require
  9. } catch (e) {
  10. console.error(e);
  11. test(shim + ': index', { todo: true });
  12. }
  13. if (shimTests) {
  14. shimTests.index();
  15. }
  16. });