test: Rename testutil.ts to httpserver.ts

This commit is contained in:
Anmol Sethi 2021-01-14 09:53:34 -05:00
parent d3074278ca
commit 64e915de4a
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import { describe } from "mocha"
import * as path from "path" import * as path from "path"
import { PluginAPI } from "../src/node/plugin" import { PluginAPI } from "../src/node/plugin"
import * as apps from "../src/node/routes/apps" import * as apps from "../src/node/routes/apps"
import * as testutil from "./testutil" import * as httpserver from "./httpserver"
const fsp = fs.promises const fsp = fs.promises
/** /**
@ -14,7 +14,7 @@ const fsp = fs.promises
*/ */
describe("plugin", () => { describe("plugin", () => {
let papi: PluginAPI let papi: PluginAPI
let s: testutil.HttpServer let s: httpserver.HttpServer
before(async () => { before(async () => {
papi = new PluginAPI(logger, `${path.resolve(__dirname, "test-plugin")}:meow`) papi = new PluginAPI(logger, `${path.resolve(__dirname, "test-plugin")}:meow`)
@ -24,7 +24,7 @@ describe("plugin", () => {
papi.mount(app) papi.mount(app)
app.use("/api/applications", apps.router(papi)) app.use("/api/applications", apps.router(papi))
s = new testutil.HttpServer() s = new httpserver.HttpServer()
await s.listen(app) await s.listen(app)
}) })