Add tests

This commit is contained in:
Ticruz
2025-02-04 13:21:23 +01:00
committed by Jon Staab
parent 917727c86f
commit 8a2b62f693
57 changed files with 9231 additions and 25 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ export class Repository<E extends HashedEvent = TrustedEvent> extends Emitter {
const duplicate = this.eventsByAddress.get(address)
if (duplicate) {
// If our event is older than the duplicate, we're done
// If our event is younger than the duplicate, we're done
if (event.created_at <= duplicate.created_at) {
return false
}