- data: '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.”',
+ timings: {
+ phases: {
+ total: 89,
+ },
+ },
+ retryCount: 0,
+ redirectUrls: [],
+ body: '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',
+ elapsedTimeMs: 89,
+ headers: {
+ 'Content-Type': 'text/plain',
+ },
+ body: 'Old Mother West Wind had stopped to talk with the Slender Fir Tree. "I\'ve just come across the Green... (184 bytes)',
+ };
+ const result = common.gotResponseLogData(response);
+ assert.deepStrictEqual(result, expected);
+ });
+ it('covers no body', function () {
+ const response = {
+ statusCode: 200,
+ statusMessage: 'OK',
+ headers: {
+ 'Content-Type': 'text/plain',
+ },
+ timings: {
+ phases: {
+ total: 89,
+ },
+ },
+ retryCount: 1,