UNPKG

@sync-in/server

Version:

The secure, open-source platform for file storage, sharing, collaboration, and sync

34 lines (33 loc) 1.03 kB
/* * Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com> * This file is part of Sync-in | The open source file sync and share solution * See the LICENSE file for licensing details */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _appbootstrap = require("./app.bootstrap"); const _utils = require("./infrastructure/database/utils"); describe('AppStaticFiles (e2e)', ()=>{ let app; beforeAll(async ()=>{ app = await (0, _appbootstrap.appBootstrap)(); await app.init(); await app.getHttpAdapter().getInstance().ready(); }); afterAll(async ()=>{ await (0, _utils.dbCloseConnection)(app); await app.close(); }); it('should be defined', ()=>{ expect(app).toBeDefined(); }); it('GET / => 200', async ()=>{ const res = await app.inject({ method: 'GET', url: '/' }); expect(res.statusCode).toEqual(200); }); }); //# sourceMappingURL=app.e2e-spec.js.map