chore(server): unit tests for metadata service (#4280)

* unit tests for metadata service

* better test descriptions
This commit is contained in:
Daniel Dietzler
2023-09-29 23:25:45 +02:00
committed by GitHub
parent 68d6d89a3b
commit 10d10d9021
3 changed files with 343 additions and 14 deletions

View File

@@ -264,7 +264,7 @@ export class MetadataService {
position,
length,
});
const checksum = await this.cryptoRepository.hashSha1(video);
const checksum = this.cryptoRepository.hashSha1(video);
let motionAsset = await this.assetRepository.getByChecksum(asset.ownerId, checksum);
if (!motionAsset) {