Skip to content

Commit

Permalink
Fix trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmervdl committed Aug 12, 2022
1 parent 0648db6 commit 247c400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/fetch/integrity.js
Expand Up @@ -14,7 +14,7 @@ setGlobalDispatcher(new Agent({
test('request with correct integrity checksum', (t) => {
const body = 'Hello world!'
const hash = createHash('sha256').update(body).digest('hex')

const server = createServer((req, res) => {
res.end(body)
})
Expand All @@ -33,7 +33,7 @@ test('request with correct integrity checksum', (t) => {
test('request with wrong integrity checksum', (t) => {
const body = 'Hello world!'
const hash = 'c0535e4be2b79ffd93291305436bf889314e4a3faec05ecffcbb7df31ad9e51b'

const server = createServer((req, res) => {
res.end(body)
})
Expand All @@ -56,7 +56,7 @@ test('request with wrong integrity checksum', (t) => {
test('request with integrity checksum on encoded body', (t) => {
const body = 'Hello world!'
const hash = createHash('sha256').update(body).digest('hex')

const server = createServer((req, res) => {
res.setHeader('content-encoding', 'gzip')
res.end(gzipSync(body))
Expand Down

0 comments on commit 247c400

Please sign in to comment.