You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(const id of [0,-1,'1&action=delete','https://other.invalid',1.5])assert.throws(()=>endpoint('thread',id));
assert.throws(()=>endpoint('post'));await assert.rejects(readPublic('https://other.invalid',()=>{throw Error('must not call')}),/Unsupported/);
});
test('GET omits credentials, disallows redirects, and parses bounded JSON',async()=>{
const result=await readPublic(endpoint('schema'),async(url,options)=>{assert.equal(options.method,'GET');assert.equal(options.credentials,'omit');assert.equal(options.redirect,'error');return new Response('{"ok":true}')});assert.equal(result.ok,true);