Skip to content

Commit 15aa4ce

Browse files
committed
Remove excessive comments
1 parent c183eaf commit 15aa4ce

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/app.test.js

-10
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,8 @@ describe("Nostr NIP 05 API tests", () => {
498498
});
499499

500500
it("should delete all data associated with a given pubkey but not affect other pubkeys", async () => {
501-
// Arrange
502501
const repo = new NameRecordRepository(redisClient);
503502

504-
// Create NameRecords with different pubkeys
505503
const record1 = new NameRecord(
506504
"user1",
507505
"pubkey1",
@@ -529,28 +527,20 @@ describe("Nostr NIP 05 API tests", () => {
529527
new Date().toISOString()
530528
);
531529

532-
// Save the records
533530
await repo.save(record1);
534531
await repo.save(record2);
535532
await repo.save(record3);
536533

537-
// Act
538-
// Delete by pubkey1
539534
await repo.deleteByPubkey("pubkey1");
540535

541-
// Assert
542-
// Verify that records with pubkey1 are deleted
543536
const fetchedRecord1 = await repo.findByName("user1");
544537
const fetchedRecord3 = await repo.findByName("user3");
545538

546539
expect(fetchedRecord1).toBeNull();
547540
expect(fetchedRecord3).toBeNull();
548541

549-
// Verify that records with pubkey2 are still present
550542
const fetchedRecord2 = await repo.findByName("user2");
551543

552544
expect(fetchedRecord2).not.toBeNull();
553-
expect(fetchedRecord2.name).toEqual("user2");
554-
expect(fetchedRecord2.pubkey).toEqual("pubkey2");
555545
});
556546
});

0 commit comments

Comments
 (0)