Archived
1
0

First commit

This commit is contained in:
Sean Edmunds
2021-12-13 17:00:40 -06:00
commit 0584430b5c
36617 changed files with 4676695 additions and 0 deletions

24
node_modules/object.hasown/test/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,24 @@
import parseInt, * as parseIntModule from 'object.hasown';
import test from 'tape';
import runTests from './tests.js';
test('as a function', (t) => {
runTests(parseInt, t);
t.end();
});
test('named exports', async (t) => {
t.deepEqual(
Object.keys(parseIntModule).sort(),
['default', 'shim', 'getPolyfill', 'implementation'].sort(),
'has expected named exports',
);
const { shim, getPolyfill, implementation } = parseIntModule;
t.equal((await import('object.hasown/shim')).default, shim, 'shim named export matches deep export');
t.equal((await import('object.hasown/implementation')).default, implementation, 'implementation named export matches deep export');
t.equal((await import('object.hasown/polyfill')).default, getPolyfill, 'getPolyfill named export matches deep export');
t.end();
});