mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-22 16:40:51 +00:00
30 lines
727 B
JavaScript
30 lines
727 B
JavaScript
'use strict';
|
|
|
|
var ES = require('../');
|
|
var test = require('tape');
|
|
|
|
var ESkeys = Object.keys(ES).sort();
|
|
var ES6keys = Object.keys(ES.ES6).sort();
|
|
|
|
test('exposed properties', function (t) {
|
|
t.deepEqual(ESkeys, ES6keys.concat(['ES2019', 'ES2018', 'ES2017', 'ES7', 'ES2016', 'ES6', 'ES2015', 'ES5']).sort(), 'main ES object keys match ES6 keys');
|
|
t.end();
|
|
});
|
|
|
|
test('methods match', function (t) {
|
|
ES6keys.forEach(function (key) {
|
|
t.equal(ES.ES6[key], ES[key], 'method ' + key + ' on main ES object is ES6 method');
|
|
});
|
|
t.end();
|
|
});
|
|
|
|
require('./GetIntrinsic');
|
|
|
|
require('./es5');
|
|
require('./es6');
|
|
require('./es2015');
|
|
require('./es7');
|
|
require('./es2016');
|
|
require('./es2017');
|
|
require('./es2018');
|
|
require('./es2019');
|