OMDSCloud/dictation_server/src/features/blob/blob.controller.spec.ts
saito.k 0a970e814f Merged PR 76: API実装(I/F)
## 概要
[Task1576: API実装(I/F)](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/1576)

- sas発行APIのIFを実装
  - アップロード用のSAS発行API
    - GET /blob/uploadSas
  - ダウンロード用のSAS発行API
    - GET /blob/downloadSas
- notification関連のフォーマット修正
- notification関連でlintエラーが出ていた箇所を修正
- openapi.jsonを生成するコマンドを使用できるように修正

## レビューポイント
- レスポンスとして返却する内容に不足は無いか
- URIはこれで良さそうか

## UIの変更
- Before/Afterのスクショなど
- スクショ置き場

## 動作確認状況
- ローカルで確認

## 補足
- 相談、参考資料などがあれば
2023-04-14 01:08:32 +00:00

24 lines
662 B
TypeScript

import { Test, TestingModule } from '@nestjs/testing';
import { BlobController } from './blob.controller';
import { BlobService } from './blob.service';
describe('BlobController', () => {
let controller: BlobController;
const mockBlobService = {};
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [BlobController],
providers: [BlobService],
})
.overrideProvider(BlobService)
.useValue(mockBlobService)
.compile();
controller = module.get<BlobController>(BlobController);
});
it('should be defined', () => {
expect(controller).toBeDefined();
});
});