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