Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50660 views
1
'use strict';
2
3
var toPrimitive = require('../');
4
var ES5 = require('../es5');
5
var ES6 = require('../es6');
6
7
var test = require('tape');
8
9
test('default export', function (t) {
10
t.equal(toPrimitive, ES6, 'default export is ES6');
11
t.equal(toPrimitive.ES5, ES5, 'ES5 property has ES5 method');
12
t.equal(toPrimitive.ES6, ES6, 'ES6 property has ES6 method');
13
t.end();
14
});
15
16
require('./es5');
17
require('./es6');
18
19