add controller tests, move validation testing from e2e

revert unnecessary change

update mocks

add structured-headers to e2e deps
This commit is contained in:
mertalev 2025-10-06 15:14:26 -04:00
parent 597382a25f
commit d4f3d9d6a5
No known key found for this signature in database
GPG key ID: DF6ABC77AAD98C95
16 changed files with 525 additions and 125 deletions

View file

@ -43,7 +43,7 @@ export class AssetUploadService extends BaseService {
throw new BadRequestException(`${assetData.filename} is an unsupported file type`);
}
this.validateQuota(auth, uploadLength ?? contentLength);
this.validateQuota(auth, uploadLength);
try {
await this.assetRepository.createWithMetadata(
@ -94,7 +94,7 @@ export class AssetUploadService extends BaseService {
return;
}
if (isComplete && uploadLength && uploadLength !== contentLength) {
if (isComplete && uploadLength !== contentLength) {
return this.sendInconsistentLengthProblem(res);
}