@nestjs/class-transformer
Version:
Fork of the class-transformer package. Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors
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