UNPKG

@sync-in/server

Version:

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

41 lines (40 loc) 1.32 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 _config = require("@nestjs/config"); const _jwt = require("@nestjs/jwt"); const _testing = require("@nestjs/testing"); const _authmanagerservice = require("./auth-manager.service"); describe(_authmanagerservice.AuthManager.name, ()=>{ let authManager; beforeAll(async ()=>{ const module = await _testing.Test.createTestingModule({ providers: [ _authmanagerservice.AuthManager, { provide: _jwt.JwtService, useValue: {} }, { provide: _config.ConfigService, useValue: { get: ()=>null } } ] }).compile(); module.useLogger([ 'fatal' ]); authManager = module.get(_authmanagerservice.AuthManager); }); it('should be defined', ()=>{ expect(authManager).toBeDefined(); }); }); //# sourceMappingURL=auth-manager.service.spec.js.map