source: imaps-frontend/node_modules/es-to-primitive/test/index.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 542 bytes
Line 
1'use strict';
2
3var toPrimitive = require('../');
4var ES5 = require('../es5');
5var ES6 = require('../es6');
6var ES2015 = require('../es2015');
7
8var test = require('tape');
9
10test('default export', function (t) {
11 t.equal(toPrimitive, ES2015, 'default export is ES2015');
12 t.equal(toPrimitive.ES5, ES5, 'ES5 property has ES5 method');
13 t.equal(toPrimitive.ES6, ES6, 'ES6 property has ES6 method');
14 t.equal(toPrimitive.ES2015, ES2015, 'ES2015 property has ES2015 method');
15 t.end();
16});
17
18require('./es5');
19require('./es6');
20require('./es2015');
Note: See TracBrowser for help on using the repository browser.