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) {
|
it('should throw if given an invalid session option', function (done) {
|
||||||
|
const requestUrl = '/requestUrl'
|
||||||
try {
|
try {
|
||||||
const urlRequest = net.request({
|
const urlRequest = net.request({
|
||||||
url: `${server.url}${requestUrl}`,
|
url: `${server.url}${requestUrl}`,
|
||||||
session: 1
|
session: 1
|
||||||
})
|
})
|
||||||
|
urlRequest
|
||||||
} catch (exception) {
|
} catch (exception) {
|
||||||
done()
|
done()
|
||||||
}
|
}
|
||||||
|
@ -931,11 +933,13 @@ describe('net module', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should throw if given an invalid partition option', function (done) {
|
it('should throw if given an invalid partition option', function (done) {
|
||||||
|
const requestUrl = '/requestUrl'
|
||||||
try {
|
try {
|
||||||
const urlRequest = net.request({
|
const urlRequest = net.request({
|
||||||
url: `${server.url}${requestUrl}`,
|
url: `${server.url}${requestUrl}`,
|
||||||
partition: 1
|
partition: 1
|
||||||
})
|
})
|
||||||
|
urlRequest
|
||||||
} catch (exception) {
|
} catch (exception) {
|
||||||
done()
|
done()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue