Commit e3f4728a authored by analog-nico's avatar analog-nico
Browse files

Added test

parent 9e04ac12
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -582,6 +582,15 @@ describe('Request-Promise', function () {
            });
        });

        it('like registering to the emitted complete event', function (done) {
            rp('http://localhost:4000/200')
                .on('complete', function (httpResponse, body) {
                    expect(httpResponse.statusCode).to.eql(200);
                    expect(body).to.eql('GET /200');
                    done();
                });
        });

    });

});