+ body: 'Old Mother West Wind had stopped to talk with the Slender Fir Tree. "I\'ve just come across the Green... (184 bytes)',
+ elapsedTimeMs: 87,
+ retryCount: 2,
+ redirectUrls: ['https://example.com/clip/Thornton_Burgess'],
+ };
+ const result = common.gotResponseLogData(response);
+ assert.deepStrictEqual(result, expected);
+ });
+ it('covers buffer data', function () {
+ const response = {
+ statusCode: 200,
+ statusMessage: 'OK',
+ body: Buffer.from('Old Mother West Wind had stopped to talk with the Slender Fir Tree. "I\'ve just come across the Green Meadows," said Old Mother West Wind, “and there I saw the Best Thing in the World.”'),
+ };
+ const expected = {
+ statusCode: 200,
+ statusMessage: 'OK',
+ body: '<Buffer 188 bytes>',