backend v4 half
This commit is contained in:
Generated
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import { getGlobal } from '.';
|
||||
describe('getGlobal()', () => {
|
||||
it('should return true if Buffer is present in globalThis', () => {
|
||||
expect(getGlobal().Buffer).toBe(true);
|
||||
});
|
||||
it('should return false if Buffer is not present in globalThis', () => {
|
||||
const bufferImp = global.Buffer;
|
||||
delete global.Buffer;
|
||||
expect(getGlobal().Buffer).toBe(false);
|
||||
global.Buffer = bufferImp;
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=get-global.util.spect.js.map
|
||||
Reference in New Issue
Block a user