Enhance Deno project with new test scripts, add testing commands to deno.json, and update implementation plan to reflect completed testing tasks. Introduce integration and unit tests for core functionalities including DenoHttpServer and mcp-auth-config.
This commit is contained in:
parent
2bbcaf7963
commit
8cadfe9106
9 changed files with 551 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
/// <reference lib="dom.iterable" />
|
||||
import type { Server } from "node:http";
|
||||
|
||||
// Simple type definitions for our server
|
||||
|
@ -27,9 +28,9 @@ export class DenoHttpServer {
|
|||
|
||||
// Create a simple request object that mimics Express req
|
||||
const query: Record<string, string> = {};
|
||||
for (const [key, value] of searchParams) {
|
||||
searchParams.forEach((value, key) => {
|
||||
query[key] = value;
|
||||
}
|
||||
});
|
||||
|
||||
const req: RequestLike = {
|
||||
query,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue