Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit244d7b3

Browse files
committed
fix test helper OrderRecordMiddleware
1 parente4c963c commit244d7b3

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-
returnnext(request).then(({
85-
data,
86-
resp
87-
})=>{
84+
returnnext(request).then((respWrapper)=>{
8885
this.record.push(`aft_${this.label}${this.record.length}`);
89-
return{
90-
data,
91-
resp
92-
};
86+
returnrespWrapper;
9387
});
9488
}
9589
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp