You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
542 B

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