eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
747 stars 131 forks source link

add to write and end support of TypedArray #300

Closed sedx closed 2 months ago

sedx commented 2 months ago

Without this changes I got:

 AssertionError: expected '112,97,121,108,111,97,100,49112,97,12…' to equal 'payload1payload2'
      + expected - actual

      -112,97,121,108,111,97,100,49112,97,121,108,111,97,100,49
      +payload1payload2

It's broke HTML when use React's streaming API - _getData() returns numbers instead of valid HTML

eugef commented 2 months ago

Hi @sedx thanks for your contribution

sedx commented 2 weeks ago

@eugef Can you release new version please 🥺? waiting this changes in our project

eugef commented 2 weeks ago

@sedx new version 1.15.0 is released