We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4756bda commit 9e1329cCopy full SHA for 9e1329c
test/integrity.js
@@ -4,7 +4,6 @@ const nock = require('nock')
4
const ssri = require('ssri')
5
const t = require('tap')
6
const zlib = require('zlib')
7
-const { once } = require('events')
8
9
const CACHE = t.testdir()
10
const CONTENT = Buffer.from('hello, world!', 'utf8')
@@ -149,6 +148,7 @@ t.test('checks integrity on cache fetch too', async (t) => {
149
148
// t.same(goodBuf, CONTENT, 'good content passed scrutiny 👍🏼')
150
151
// const badRes1 = await safetch(`${HOST}/test`)
+ // eslint-disable-next-line max-len
152
// await t.rejects(() => badRes1.buffer(), { code: 'EINTEGRITY' }, 'cached content failed checksum')
153
154
const badRes2 = await safetch(`${HOST}/test`, {
0 commit comments