/[sudobot]/branches/9.x-dev/tests/mocks/application.mock.ts
ViewVC logotype

Annotation of /branches/9.x-dev/tests/mocks/application.mock.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (hide annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 594 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 rakinar2 577 import Application from "@framework/app/Application";
2     import { Logger } from "@framework/log/Logger";
3     import path from "path";
4     import { createClient } from "./client.mock";
5    
6     export const createApplication = () => {
7     const client = createClient();
8     const application = new Application(path.resolve(__dirname, "../../.."));
9    
10     application.setClient(client);
11     application.setLogger(new Logger("test_system", true));
12     application.container.bind(Application, {
13     key: "application",
14     singleton: true,
15     factory: () => application
16     });
17    
18     return application;
19     };

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26