Skip to content

Commit 151a63e

Browse files
author
Lew Gordon
committed
fixup! linting fixes
1 parent beee6a4 commit 151a63e

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

test/parallel/test-http-decoded-auth.js

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,32 @@ const assert = require('assert');
44
const http = require('http');
55

66
const testCases = [
7-
{username: 'test@test"', password: '123456^', expected: 'dGVzdEB0ZXN0IjoxMjM0NTZe'},
8-
{username: 'test%40test', password: '123456', expected: 'dGVzdEB0ZXN0OjEyMzQ1Ng=='},
9-
{username: 'not%3Agood', password: 'god', expected: 'bm90Omdvb2Q6Z29k'},
10-
{username: 'not%22good', password: 'g%5Eod', expected: 'bm90Imdvb2Q6Z15vZA=='},
11-
{username: 'test1234::::', password: 'mypass', expected: 'dGVzdDEyMzQ6Ojo6Om15cGFzcw=='}
12-
]
7+
{
8+
username: 'test@test"',
9+
password: '123456^',
10+
expected: 'dGVzdEB0ZXN0IjoxMjM0NTZe'
11+
},
12+
{
13+
username: 'test%40test',
14+
password: '123456',
15+
expected: 'dGVzdEB0ZXN0OjEyMzQ1Ng=='
16+
},
17+
{
18+
username: 'not%3Agood',
19+
password: 'god',
20+
expected: 'bm90Omdvb2Q6Z29k'
21+
},
22+
{
23+
username: 'not%22good',
24+
password: 'g%5Eod',
25+
expected: 'bm90Imdvb2Q6Z15vZA=='
26+
},
27+
{
28+
username: 'test1234::::',
29+
password: 'mypass',
30+
expected: 'dGVzdDEyMzQ6Ojo6Om15cGFzcw=='
31+
},
32+
];
1333

1434
for (const testCase of testCases) {
1535
const server = http.createServer(function(request, response) {
@@ -19,7 +39,7 @@ for (const testCase of testCases) {
1939
response.end('ok');
2040
server.close();
2141
});
22-
42+
2343
server.listen(0, function() {
2444
// make the request
2545
const url = new URL(`http://${testCase.username}:${testCase.password}@localhost:${this.address().port}`);

0 commit comments

Comments
 (0)