demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/has-symbols-1.1.0/test/index.js

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/has-symbols-1.1.0/test/index.js
Status
scanned
Type
file
Name
index.js
Extension
.js
Programming language
JavaScript
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
654 (654 bytes)
MD5
41c0f79988143019f41a2c66aedff688
SHA1
c388d5615b642d2cffcae765a5e920a1389db994
SHA256
b2eddc5a76e6a43738847679126ef698ec8ad36993045207cc1323d1f89710d6
SHA512

      
    
SHA1_git
352129ca356c8ce4ba2e5e6b78c092f401e0f2da
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
index.js | 654 bytes |

'use strict'; var test = require('tape'); var hasSymbols = require('../'); var runSymbolTests = require('./tests'); test('interface', function (t) { t.equal(typeof hasSymbols, 'function', 'is a function'); t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean'); t.end(); }); test('Symbols are supported', { skip: !hasSymbols() }, function (t) { runSymbolTests(t); t.end(); }); test('Symbols are not supported', { skip: hasSymbols() }, function (t) { t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined'); t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist'); t.end(); });
Package URL License Primary language
pkg:npm/has-symbols@1.1.0 mit JavaScript
pkg:npm/acme-demo-app@1.0.0 JavaScript