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.
 
 
 
 
 

13 lines
498 B

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