fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -146,7 +146,10 @@ await test('fetch accepts a real server confirmation', async (t) => {
|
||||
|
||||
await test('browser writes preserve the CSRF cookie header', async (t) => {
|
||||
const previous = Object.getOwnPropertyDescriptor(globalThis, 'document');
|
||||
Object.defineProperty(globalThis, 'document', { configurable: true, value: { cookie: 'other=x; XSRF-TOKEN=qa%2Ftoken' } });
|
||||
Object.defineProperty(globalThis, 'document', {
|
||||
configurable: true,
|
||||
value: { cookie: 'other=x; XSRF-TOKEN=qa%2Ftoken' },
|
||||
});
|
||||
try {
|
||||
t.mock.method(globalThis, 'fetch', async (_url, options) => {
|
||||
assert.equal(options.headers.get('X-XSRF-TOKEN'), 'qa/token');
|
||||
|
||||
Reference in New Issue
Block a user