refactor: improve cookie failure rejection messages (#42362)
This commit is contained in:
parent
7f3dc7d4ce
commit
54c315c9b0
3 changed files with 105 additions and 24 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue