UNPKG

@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 482 B
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