View index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createServer, IncomingMessage, ServerResponse } from 'http' | |
// The core http server | |
const httpServer = createServer(requestHandler) | |
// Our request handler and route dispatcher | |
async function requestHandler(req: IncomingMessage, res: ServerResponse) {} |
View test-runner.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const assert = require('assert'); | |
const kleur = require('kleur'); | |
const testCases = new Set(); | |
module.exports = function test(title, testCase) { | |
testCases.add([title, testCase]); | |
}; |