| 1 | import { describe, it, expect, beforeEach, vi } from 'vitest'; |
| 2 | import { Test, TestingModule |
| 3 | |
| 4 | import { GitController } |
| 5 | import { GitService } |
| 6 | |
| 7 | describe('GitController', () |
| 8 | let controller: |
| 9 | |
| 10 | beforeEach(async () |
| 11 | const module: |
| 12 | controllers: [GitController], |
| 13 | providers: [ |
| 14 | { |
| 15 | provide: GitService, |
| 16 | useValue: { |
| 17 | advertiseRefs: vi.fn |
| 18 | uploadPack: vi.fn |
| 19 | receivePack: vi.fn |
| 20 | }, |
| 21 | }, |
| 22 | ], |
| 23 | }).compile(); |
| 24 | |
| 25 | controller = module. |
| 26 | }); |
| 27 | |
| 28 | it('should be defined', |
| 29 | expect(controller).toBeDefined |
| 30 | }); |
| 31 | }); |