Fixing code review issues: fixing linter issues in spec file.
This commit is contained in:
parent
bdb3f4d4cb
commit
e9db926b48
1 changed files with 4 additions and 0 deletions
|
@ -859,11 +859,13 @@ describe('net module', function () {
|
|||
})
|
||||
|
||||
it('should throw if given an invalid session option', function (done) {
|
||||
const requestUrl = '/requestUrl'
|
||||
try {
|
||||
const urlRequest = net.request({
|
||||
url: `${server.url}${requestUrl}`,
|
||||
session: 1
|
||||
})
|
||||
urlRequest
|
||||
} catch (exception) {
|
||||
done()
|
||||
}
|
||||
|
@ -931,11 +933,13 @@ describe('net module', function () {
|
|||
})
|
||||
|
||||
it('should throw if given an invalid partition option', function (done) {
|
||||
const requestUrl = '/requestUrl'
|
||||
try {
|
||||
const urlRequest = net.request({
|
||||
url: `${server.url}${requestUrl}`,
|
||||
partition: 1
|
||||
})
|
||||
urlRequest
|
||||
} catch (exception) {
|
||||
done()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue