Skip to content

Commit 244d7b3

Browse files
committed
fix test helper OrderRecordMiddleware
1 parent e4c963c commit 244d7b3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/httpc.test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,9 @@ describe('test http module', function () {
8181
*/
8282
send (request, next) {
8383
this.record.push(`bef_${this.label}${this.record.length}`);
84-
return next(request).then(({
85-
data,
86-
resp
87-
}) => {
84+
return next(request).then((respWrapper) => {
8885
this.record.push(`aft_${this.label}${this.record.length}`);
89-
return {
90-
data,
91-
resp
92-
};
86+
return respWrapper;
9387
});
9488
}
9589
}

0 commit comments

Comments
 (0)