2023-02-17 11:06:01 +01:00

13 lines
498 B
JavaScript

import { getGlobal } from '.';
describe('getGlobal()', function () {
it('should return true if Buffer is present in globalThis', function () {
expect(getGlobal().Buffer).toBe(true);
});
it('should return false if Buffer is not present in globalThis', function () {
var bufferImp = global.Buffer;
delete global.Buffer;
expect(getGlobal().Buffer).toBe(false);
global.Buffer = bufferImp;
});
});
//# sourceMappingURL=get-global.util.spect.js.map