index.js 405 B

1234567891011121314151617
  1. 'use strict';
  2. var toPrimitive = require('../');
  3. var ES5 = require('../es5');
  4. var ES6 = require('../es6');
  5. var test = require('tape');
  6. test('default export', function (t) {
  7. t.equal(toPrimitive, ES6, 'default export is ES6');
  8. t.equal(toPrimitive.ES5, ES5, 'ES5 property has ES5 method');
  9. t.equal(toPrimitive.ES6, ES6, 'ES6 property has ES6 method');
  10. t.end();
  11. });
  12. require('./es5');
  13. require('./es6');