refactor: improve cookie failure rejection messages (#42362)

This commit is contained in:
Shelley Vohr 2024-06-07 10:06:37 +02:00 committed by GitHub
parent 7f3dc7d4ce
commit 54c315c9b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 105 additions and 24 deletions

View file

@ -378,7 +378,7 @@ describe('net module (session)', () => {
url: 'https://electronjs.org',
domain: 'wssss.iamabaddomain.fun',
name: 'cookie1'
})).to.eventually.be.rejectedWith(/Failed to set cookie with an invalid domain attribute/);
})).to.eventually.be.rejectedWith(/Failed to set cookie - The cookie was set with an invalid Domain attribute./);
});
it('should be able correctly filter out cookies that are session', async () => {