From b659864f7a60e624f893c9ba7834e54af75d7a16 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sun, 12 Sep 2021 10:08:51 -0400 Subject: Refactor env config into Metadata --- src/util/config.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/util/config.test.ts') diff --git a/src/util/config.test.ts b/src/util/config.test.ts index 7506840..e385bce 100644 --- a/src/util/config.test.ts +++ b/src/util/config.test.ts @@ -13,6 +13,7 @@ import { Server } from "http"; import path from "path"; import fs from "fs"; import * as templates from "../templates"; +import { EnvConfig } from "../metadata"; const CommonMocks = { connect: jest.fn(), @@ -188,8 +189,12 @@ describe("handleStartup", () => { exit.mockClear(); }); + const config = { + hostDir: "/apple", + publicDir: "/public" + } as EnvConfig; const confStartup = (): Promise => - handleStartup("", "/apple", "/public", "localhost"); + handleStartup("", config, "localhost"); it("should pass back MongoClient", async () => { const superClient = {} as MongoClient; -- cgit