fix(core): update
This commit is contained in:
@ -5,7 +5,9 @@ import * as fs from 'fs';
|
||||
|
||||
tap.test('should create a SmartStream from a Buffer', async () => {
|
||||
const bufferData = Buffer.from('This is a test buffer');
|
||||
const smartStream = SmartDuplex.fromBuffer(bufferData);
|
||||
const smartStream = SmartDuplex.fromBuffer(bufferData, {
|
||||
handleBackpressure: false,
|
||||
});
|
||||
|
||||
let receivedData = Buffer.alloc(0);
|
||||
|
||||
@ -25,7 +27,9 @@ tap.test('should create a SmartStream from an Observable', async () => {
|
||||
const observableData = 'Observable test data';
|
||||
const testObservable = smartrx.rxjs.of(Buffer.from(observableData));
|
||||
|
||||
const smartStream = SmartDuplex.fromObservable(testObservable);
|
||||
const smartStream = SmartDuplex.fromObservable(testObservable, {
|
||||
handleBackpressure: false,
|
||||
});
|
||||
|
||||
let receivedData = Buffer.alloc(0);
|
||||
|
||||
|
Reference in New Issue
Block a user