index.js 696 B

1234567891011121314151617181920212223242526272829
  1. 'use strict';
  2. var ES = require('../');
  3. var test = require('tape');
  4. var ESkeys = Object.keys(ES).sort();
  5. var ES6keys = Object.keys(ES.ES6).sort();
  6. test('exposed properties', function (t) {
  7. t.deepEqual(ESkeys, ES6keys.concat(['ES2018', 'ES2017', 'ES7', 'ES2016', 'ES6', 'ES2015', 'ES5']).sort(), 'main ES object keys match ES6 keys');
  8. t.end();
  9. });
  10. test('methods match', function (t) {
  11. ES6keys.forEach(function (key) {
  12. t.equal(ES.ES6[key], ES[key], 'method ' + key + ' on main ES object is ES6 method');
  13. });
  14. t.end();
  15. });
  16. require('./GetIntrinsic');
  17. require('./es5');
  18. require('./es6');
  19. require('./es2015');
  20. require('./es7');
  21. require('./es2016');
  22. require('./es2017');
  23. require('./es2018');