File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ setGlobalDispatcher(new Agent({
1414test ( 'request with correct integrity checksum' , ( t ) => {
1515 const body = 'Hello world!'
1616 const hash = createHash ( 'sha256' ) . update ( body ) . digest ( 'hex' )
17-
17+
1818 const server = createServer ( ( req , res ) => {
1919 res . end ( body )
2020 } )
@@ -33,7 +33,7 @@ test('request with correct integrity checksum', (t) => {
3333test ( 'request with wrong integrity checksum' , ( t ) => {
3434 const body = 'Hello world!'
3535 const hash = 'c0535e4be2b79ffd93291305436bf889314e4a3faec05ecffcbb7df31ad9e51b'
36-
36+
3737 const server = createServer ( ( req , res ) => {
3838 res . end ( body )
3939 } )
@@ -56,7 +56,7 @@ test('request with wrong integrity checksum', (t) => {
5656test ( 'request with integrity checksum on encoded body' , ( t ) => {
5757 const body = 'Hello world!'
5858 const hash = createHash ( 'sha256' ) . update ( body ) . digest ( 'hex' )
59-
59+
6060 const server = createServer ( ( req , res ) => {
6161 res . setHeader ( 'content-encoding' , 'gzip' )
6262 res . end ( gzipSync ( body ) )
You can’t perform that action at this time.
0 commit comments