mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
refactor(nestjs): e2e test cases
This commit is contained in:
@@ -2,6 +2,7 @@ import { ItemEntryDto } from '@/modules/TransactionItemEntry/dto/ItemEntry.dto';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
import {
|
||||
ArrayMinSize,
|
||||
IsArray,
|
||||
IsBoolean,
|
||||
IsDate,
|
||||
@@ -92,7 +93,7 @@ export class CommandSaleEstimateDto {
|
||||
branchId?: number;
|
||||
|
||||
@IsArray()
|
||||
@MinLength(1)
|
||||
@ArrayMinSize(1)
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => SaleEstimateEntryDto)
|
||||
@ApiProperty({
|
||||
|
||||
Reference in New Issue
Block a user