chore: debug log 仅输出app的log fix(commons): fix sanitize not return value. feat(webhooks): add gitea webhooks api. Co-authored-by: Ivan Li <ivanli@live.cn> Co-authored-by: Ivan <ivanli@live.cn> Reviewed-on: #2 Co-Authored-By: Ivan Li <ivan@noreply.%(DOMAIN)s> Co-Committed-By: Ivan Li <ivan@noreply.%(DOMAIN)s>
26 lines
705 B
TypeScript
26 lines
705 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { GiteaWebhooksController } from './gitea-webhooks.controller';
|
|
import { WebhooksService } from './webhooks.service';
|
|
|
|
describe('GiteaWebhooksController', () => {
|
|
let controller: GiteaWebhooksController;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
controllers: [GiteaWebhooksController],
|
|
providers: [
|
|
{
|
|
provide: WebhooksService,
|
|
useValue: {},
|
|
},
|
|
],
|
|
}).compile();
|
|
|
|
controller = module.get<GiteaWebhooksController>(GiteaWebhooksController);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(controller).toBeDefined();
|
|
});
|
|
});
|