@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
56 lines (55 loc) • 2.14 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 _axios = require("@nestjs/axios");
const _testing = require("@nestjs/testing");
const _authmethod = require("../../../authentication/models/auth-method");
const _authmanagerservice = require("../../../authentication/services/auth-manager.service");
const _cacheservice = require("../../../infrastructure/cache/services/cache.service");
const _usersqueriesservice = require("../../users/services/users-queries.service");
const _syncclientsmanagerservice = require("./sync-clients-manager.service");
const _syncqueriesservice = require("./sync-queries.service");
describe(_syncclientsmanagerservice.SyncClientsManager.name, ()=>{
let service;
beforeAll(async ()=>{
const module = await _testing.Test.createTestingModule({
providers: [
_syncclientsmanagerservice.SyncClientsManager,
{
provide: _cacheservice.Cache,
useValue: {}
},
{
provide: _axios.HttpService,
useValue: {}
},
{
provide: _syncqueriesservice.SyncQueries,
useValue: {}
},
{
provide: _usersqueriesservice.UsersQueries,
useValue: {}
},
{
provide: _authmanagerservice.AuthManager,
useValue: {}
},
{
provide: _authmethod.AuthMethod,
useValue: {}
}
]
}).compile();
service = module.get(_syncclientsmanagerservice.SyncClientsManager);
});
it('should be defined', ()=>{
expect(service).toBeDefined();
});
});
//# sourceMappingURL=sync-clients-manager.service.spec.js.map