Skip to content

Commit 1c8ea38

Browse files
author
Fuss Florian (uid10804)
committed
test(handler): change test settings to use the default appconfig
1 parent e38766e commit 1c8ea38

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/server/tests/handler.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ import { FileStorageAdapter } from '../src/storage/file.storage';
88
import { Environment } from '../src/environment/environment';
99
import { CoreApp, AppConfig } from '../src/app';
1010

11-
const appConfig: AppConfig = JSON.parse(
12-
fs.readFileSync('./tests/resources/appconfig.json', 'UTF-8')
13-
);
11+
const appConfig = new AppConfig();
1412
appConfig.jsonFile = './tests/resources/validate.json';
15-
const server = express();
1613

14+
const server = express();
1715
const environment = new Environment();
1816
const swagger = new Swagger(
1917
server,

packages/server/tests/resources/appconfig.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)