diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-12 10:08:51 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-12 10:08:51 -0400 |
| commit | b659864f7a60e624f893c9ba7834e54af75d7a16 (patch) | |
| tree | 03d65ba488f2f40ef8a1a0df166aa597475a063f /src/util/config.test.ts | |
| parent | 521f426a1c658d5c48d272a28135ce77047f068f (diff) | |
| download | ao-coverage-b659864f7a60e624f893c9ba7834e54af75d7a16.tar.gz ao-coverage-b659864f7a60e624f893c9ba7834e54af75d7a16.tar.bz2 ao-coverage-b659864f7a60e624f893c9ba7834e54af75d7a16.zip | |
Refactor env config into Metadata
Diffstat (limited to 'src/util/config.test.ts')
| -rw-r--r-- | src/util/config.test.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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<MongoClient> => - handleStartup("", "/apple", "/public", "localhost"); + handleStartup("", config, "localhost"); it("should pass back MongoClient", async () => { const superClient = {} as MongoClient; |
