1
|
'use strict';
|
2
|
|
3
|
var ES = require('../');
|
4
|
var test = require('tape');
|
5
|
var keys = require('object-keys');
|
6
|
var forEach = require('foreach');
|
7
|
|
8
|
var ESkeys = keys(ES).sort();
|
9
|
var ES6keys = keys(ES.ES6).sort();
|
10
|
|
11
|
test('exposed properties', function (t) {
|
12
|
t.deepEqual(ESkeys, ES6keys.concat(['ES2019', 'ES2018', 'ES2017', 'ES7', 'ES2016', 'ES6', 'ES2015', 'ES5']).sort(), 'main ES object keys match ES6 keys');
|
13
|
t.end();
|
14
|
});
|
15
|
|
16
|
test('methods match', function (t) {
|
17
|
forEach(ES6keys, function (key) {
|
18
|
t.equal(ES.ES6[key], ES[key], 'method ' + key + ' on main ES object is ES6 method');
|
19
|
});
|
20
|
t.end();
|
21
|
});
|
22
|
|
23
|
require('./GetIntrinsic');
|
24
|
|
25
|
require('./helpers/getSymbolDescription');
|
26
|
require('./helpers/OwnPropertyKeys');
|
27
|
|
28
|
require('./es5');
|
29
|
require('./es6');
|
30
|
require('./es2015');
|
31
|
require('./es7');
|
32
|
require('./es2016');
|
33
|
require('./es2017');
|
34
|
require('./es2018');
|
35
|
require('./es2019');
|