@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
53 lines (52 loc) • 2.03 kB
JavaScript
/*
* 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 _testing = require("@nestjs/testing");
const _contextmanagerservice = require("../../infrastructure/context/services/context-manager.service");
const _spacesmanagerservice = require("../spaces/services/spaces-manager.service");
const _syncclientsmanagerservice = require("./services/sync-clients-manager.service");
const _syncmanagerservice = require("./services/sync-manager.service");
const _syncpathsmanagerservice = require("./services/sync-paths-manager.service");
const _synccontroller = require("./sync.controller");
describe(_synccontroller.SyncController.name, ()=>{
let controller;
beforeAll(async ()=>{
const module = await _testing.Test.createTestingModule({
controllers: [
_synccontroller.SyncController
],
providers: [
{
provide: _contextmanagerservice.ContextManager,
useValue: {}
},
{
provide: _spacesmanagerservice.SpacesManager,
useValue: {}
},
{
provide: _syncmanagerservice.SyncManager,
useValue: {}
},
{
provide: _syncclientsmanagerservice.SyncClientsManager,
useValue: {}
},
{
provide: _syncpathsmanagerservice.SyncPathsManager,
useValue: {}
}
]
}).compile();
controller = module.get(_synccontroller.SyncController);
});
it('should be defined', ()=>{
expect(controller).toBeDefined();
});
});
//# sourceMappingURL=sync.controller.spec.js.map