main
Last change
on this file 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 |
|
---|
3 | var toPrimitive = require('../');
|
---|
4 | var ES5 = require('../es5');
|
---|
5 | var ES6 = require('../es6');
|
---|
6 | var ES2015 = require('../es2015');
|
---|
7 |
|
---|
8 | var test = require('tape');
|
---|
9 |
|
---|
10 | test('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 |
|
---|
18 | require('./es5');
|
---|
19 | require('./es6');
|
---|
20 | require('./es2015');
|
---|
Note:
See
TracBrowser
for help on using the repository browser.