@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
41 lines (40 loc) • 1.51 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 _filesmanagerservice = require("../../files/services/files-manager.service");
const _spacesmanagerservice = require("../../spaces/services/spaces-manager.service");
const _syncmanagerservice = require("./sync-manager.service");
const _syncqueriesservice = require("./sync-queries.service");
describe(_syncmanagerservice.SyncManager.name, ()=>{
let service;
beforeAll(async ()=>{
const module = await _testing.Test.createTestingModule({
providers: [
_syncmanagerservice.SyncManager,
{
provide: _spacesmanagerservice.SpacesManager,
useValue: {}
},
{
provide: _filesmanagerservice.FilesManager,
useValue: {}
},
{
provide: _syncqueriesservice.SyncQueries,
useValue: {}
}
]
}).compile();
service = module.get(_syncmanagerservice.SyncManager);
});
it('should be defined', ()=>{
expect(service).toBeDefined();
});
});
//# sourceMappingURL=sync-manager.service.spec.js.map