@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
36 lines (35 loc) • 1.19 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 _usersmanagerservice = require("./services/users-manager.service");
const _usersgateway = require("./users.gateway");
describe(_usersgateway.WebSocketUsers.name, ()=>{
let gateway;
beforeAll(async ()=>{
const module = await _testing.Test.createTestingModule({
providers: [
_usersgateway.WebSocketUsers,
{
provide: _usersmanagerservice.UsersManager,
useValue: {}
}
]
}).compile();
gateway = module.get(_usersgateway.WebSocketUsers);
});
it('should be defined', ()=>{
expect(gateway).toBeDefined();
});
// describe('test', () => {
// it('should return ok', async () => {
// await expect(gateway.test('')).resolves.toBe('ok')
// })
// })
});
//# sourceMappingURL=users.gateway.spec.js.map