get-global.util.spect.js 498 B

12345678910111213
  1. import { getGlobal } from '.';
  2. describe('getGlobal()', function () {
  3. it('should return true if Buffer is present in globalThis', function () {
  4. expect(getGlobal().Buffer).toBe(true);
  5. });
  6. it('should return false if Buffer is not present in globalThis', function () {
  7. var bufferImp = global.Buffer;
  8. delete global.Buffer;
  9. expect(getGlobal().Buffer).toBe(false);
  10. global.Buffer = bufferImp;
  11. });
  12. });
  13. //# sourceMappingURL=get-global.util.spect.js.map