|
@@ -526,7 +526,7 @@ describe('session module', () => {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
- describe('ses.clearAuthCache(options)', () => {
|
|
|
+ describe('ses.clearAuthCache()', () => {
|
|
|
it('can clear http auth info from cache', async () => {
|
|
|
const ses = session.fromPartition('auth-cache')
|
|
|
const server = http.createServer((req, res) => {
|
|
@@ -569,7 +569,7 @@ describe('session module', () => {
|
|
|
expect(await fetch(`http://test:[email protected]:${port}`)).to.equal('authenticated')
|
|
|
// subsequently, the credentials are cached
|
|
|
expect(await fetch(`http://127.0.0.1:${port}`)).to.equal('authenticated')
|
|
|
- await ses.clearAuthCache({ type: 'password' })
|
|
|
+ await ses.clearAuthCache()
|
|
|
// once the cache is cleared, we should get an error again
|
|
|
await expect(fetch(`http://127.0.0.1:${port}`)).to.eventually.be.rejected()
|
|
|
})
|