mdasberg / ng-apimock

Node plugin that provides the ability to use scenario based api mocking: for local development for protractor testing
MIT License
99 stars 26 forks source link

Fix recording bug #7

Closed FrankMerema closed 7 years ago

FrankMerema commented 7 years ago

If serving a file through a mock, chunk will be a buffer instead of a string. So add decoding to utf8 for the recording functionality.

Before: If recording a mock which response contains an other json file, the GUI will show the response as [object object]. After: After decoding the buffer to a utf8 string the GUI shows the response correctly.