From 87ddbbe3b1012f7a485fe61c1ad635a51015e04f Mon Sep 17 00:00:00 2001 From: Moon Date: Thu, 25 Mar 2021 00:01:46 +0800 Subject: [PATCH] Update test case description --- test/js-specs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/js-specs.js b/test/js-specs.js index b52ddf3..2c82246 100644 --- a/test/js-specs.js +++ b/test/js-specs.js @@ -150,21 +150,21 @@ describe('Advanced HTTP public interface', function () { (() => { http.setRequestTimeout('myString'); }).should.throw(messages.INVALID_TIMEOUT_VALUE); }); - it('configures connect timeout and read timeout with given valid value', () => { + it('configures connect timeout value correctly with given valid value', () => { http.setConnectTimeout(10); http.getConnectTimeout().should.equal(10); }) - it('configures connect timeout and read timeout with a string', () => { + it('throws an Error when you try to configure connect timeout with a string', () => { (() => { http.setConnectTimeout('myString'); }).should.throw(messages.INVALID_TIMEOUT_VALUE); }) - it('configures read timeout and read timeout with given valid value', () => { + it('configures read timeout value correctly with given valid value', () => { http.setReadTimeout(10); http.getReadTimeout().should.equal(10); }) - it('configures read timeout and read timeout with a string', () => { + it('throws an Error when you try to configure connect timeout with a string', () => { (() => { http.setReadTimeout('myString'); }).should.throw(messages.INVALID_TIMEOUT_VALUE); })