UNPKG

@sync-in/server

Version:

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

51 lines (50 loc) 2.28 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 _testing = require("@nestjs/testing"); const _cacheservice = require("../../../infrastructure/cache/services/cache.service"); const _contextmanagerservice = require("../../../infrastructure/context/services/context-manager.service"); const _constants = require("../../../infrastructure/database/constants"); const _filesqueriesservice = require("../../files/services/files-queries.service"); const _notificationsmanagerservice = require("../../notifications/services/notifications-manager.service"); const _sharesqueriesservice = require("../../shares/services/shares-queries.service"); const _spacesqueriesservice = require("../../spaces/services/spaces-queries.service"); const _commentsmanagerservice = require("./comments-manager.service"); const _commentsqueriesservice = require("./comments-queries.service"); describe(_commentsmanagerservice.CommentsManager.name, ()=>{ let service; beforeAll(async ()=>{ const module = await _testing.Test.createTestingModule({ providers: [ { provide: _constants.DB_TOKEN_PROVIDER, useValue: {} }, { provide: _cacheservice.Cache, useValue: {} }, { provide: _notificationsmanagerservice.NotificationsManager, useValue: {} }, _contextmanagerservice.ContextManager, _commentsmanagerservice.CommentsManager, _commentsqueriesservice.CommentsQueries, _filesqueriesservice.FilesQueries, _spacesqueriesservice.SpacesQueries, _sharesqueriesservice.SharesQueries ] }).compile(); service = module.get(_commentsmanagerservice.CommentsManager); }); it('should be defined', ()=>{ expect(service).toBeDefined(); }); }); //# sourceMappingURL=comments-manager.service.spec.js.map