UNPKG

@sync-in/server

Version:

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

46 lines (45 loc) 1.7 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 _axios = require("@nestjs/axios"); const _testing = require("@nestjs/testing"); const _cacheservice = require("../../../infrastructure/cache/services/cache.service"); const _notificationsmanagerservice = require("../../notifications/services/notifications-manager.service"); const _adminusersqueriesservice = require("../../users/services/admin-users-queries.service"); const _adminservice = require("./admin.service"); describe(_adminservice.AdminService.name, ()=>{ let service; beforeAll(async ()=>{ const module = await _testing.Test.createTestingModule({ providers: [ _adminservice.AdminService, { provide: _axios.HttpService, useValue: {} }, { provide: _cacheservice.Cache, useValue: {} }, { provide: _adminusersqueriesservice.AdminUsersQueries, useValue: {} }, { provide: _notificationsmanagerservice.NotificationsManager, useValue: {} } ] }).compile(); service = module.get(_adminservice.AdminService); }); it('should be defined', ()=>{ expect(service).toBeDefined(); }); }); //# sourceMappingURL=admin.service.spec.js.map