Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

12345678910111213141516171819202122
  1. 'use strict';
  2. var test = require('tape');
  3. var hasSymbols = require('../');
  4. var runSymbolTests = require('./tests');
  5. test('interface', function (t) {
  6. t.equal(typeof hasSymbols, 'function', 'is a function');
  7. t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean');
  8. t.end();
  9. });
  10. test('Symbols are supported', { skip: !hasSymbols() }, function (t) {
  11. runSymbolTests(t);
  12. t.end();
  13. });
  14. test('Symbols are not supported', { skip: hasSymbols() }, function (t) {
  15. t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined');
  16. t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist');
  17. t.end();
  18. });