File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ .vscode
1
2
build
2
3
lib-cov
3
4
coverage.html
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ describe('request', function () {
100
100
101
101
return Promise . all ( [ request_ , request_ , request_ ] ) . then ( ( results ) => {
102
102
for ( const item of results ) {
103
- assert . equal (
103
+ assert . deepEqual (
104
104
item . body ,
105
105
results [ 0 ] . body ,
106
106
'It should keep returning the same result after being called once'
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ describe('Multipart', () => {
114
114
115
115
it ( 'should report ENOENT via the callback' , ( done ) => {
116
116
request
117
- . post ( 'http://127.0.0.1:1' ) // nobody is listening there
117
+ . post ( ` ${ base } /echo` )
118
118
. attach ( 'name' , 'file-does-not-exist' )
119
119
. end ( ( error , res ) => {
120
120
assert . ok ( Boolean ( error ) , 'Request should have failed' ) ;
@@ -125,7 +125,7 @@ describe('Multipart', () => {
125
125
126
126
it ( 'should report ENOENT via Promise' , ( ) => {
127
127
return request
128
- . post ( `http://127.0.0.1:1` ) // nobody is listening there
128
+ . post ( `${ base } /echo` )
129
129
. attach ( 'name' , 'file-does-not-exist' )
130
130
. then (
131
131
( res ) => assert . fail ( 'Request should have failed' ) ,
You can’t perform that action at this time.
0 commit comments