Fixing code review issues: fixing linter issues in spec file.

This commit is contained in:
ali.ibrahim 2016-10-25 16:55:17 +02:00
parent bdb3f4d4cb
commit e9db926b48

View file

@ -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()
} }