Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shimmed.js 905B

1234567891011121314151617181920212223242526272829
  1. 'use strict';
  2. require('../auto');
  3. var test = require('tape');
  4. var defineProperties = require('define-properties');
  5. var isEnumerable = Object.prototype.propertyIsEnumerable;
  6. var runTests = require('./tests');
  7. test('shimmed', function (t) {
  8. t.equal(typeof globalThis, 'object', 'globalThis is an object');
  9. t.equal('globalThis' in globalThis, true, 'globalThis is in globalThis');
  10. t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
  11. et.equal(false, isEnumerable.call(globalThis, 'globalThis'), 'globalThis.globalThis is not enumerable');
  12. et.end();
  13. });
  14. t.test('writability', { skip: !defineProperties.supportsDescriptors }, function (wt) {
  15. var desc = Object.getOwnPropertyDescriptor(globalThis, 'globalThis');
  16. wt.equal(desc.writable, false, 'globalThis.globalThis is not writable');
  17. wt.end();
  18. });
  19. runTests(globalThis.globalThis, t);
  20. t.end();
  21. });