Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50654 views
1
'use strict';
2
3
var ES = require('../');
4
var test = require('tape');
5
6
var ESkeys = Object.keys(ES).sort();
7
var ES6keys = Object.keys(ES.ES6).sort();
8
9
test('exposed properties', function (t) {
10
t.deepEqual(ESkeys, ES6keys.concat(['ES7', 'ES6', 'ES5']).sort(), 'main ES object keys match ES6 keys');
11
t.end();
12
});
13
14
test('methods match', function (t) {
15
ES6keys.forEach(function (key) {
16
t.equal(ES.ES6[key], ES[key], 'method ' + key + ' on main ES object is ES6 method');
17
});
18
t.end();
19
});
20
21
require('./es5');
22
require('./es6');
23
require('./es7');
24
25