Skip to main content
Module

x/workers_middleware/test/body-parser.test.js

Placeholder for Worker-based middleware solution
Go to Latest
File
// import './fixes';// import { jest } from '@jest/globals'// import { ok } from '@worker-tools/response-creators';
// import { withBodyParser } from '../body'// import { withContentNegotiation } from '../content-negotiation';// import { withUnsignedCookies, withSignedCookies, executeEffects } from '../index.js';
// import { iterHeadersSetCookieFix } from '../utils/headers-set-cookie-fix.js';// import { MiddlewareCookieStore } from '../utils/middleware-cookie-store';// import { SignedCookieStore } from '@worker-tools/signed-cookie-store';
// const request = new Request('/item/detail?id=3', {// method: 'POST',// headers: {// 'Cookie': 'foo=bar; user=bert; no=mad',// },// })
// test('exist', () => {// expect(withBodyParser()).toBeDefined()// })