From 07ab7336065ef09fc2a95a51ffc343e7ab2d6b10 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Wed, 10 Jan 2024 12:51:25 +0530 Subject: [PATCH] Update readme and test --- README.md | 12 ++++++++++++ src/naming.test.ts | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb95d33..2b947da 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,12 @@ Follow these steps to run the tests: - Run the tests with auctions enabled + - Remove laconicd data from previous run + + ```bash + rm -rf ~/.laconicd + ``` + - In laconicd repo run: ```bash @@ -54,6 +60,12 @@ Follow these steps to run the tests: - Run the tests for record and authority expiry + - Remove laconicd data from previous run + + ```bash + rm -rf ~/.laconicd + ``` + - In laconicd repo run: ```bash diff --git a/src/naming.test.ts b/src/naming.test.ts index 73494fa..472ff71 100644 --- a/src/naming.test.ts +++ b/src/naming.test.ts @@ -119,9 +119,9 @@ const namingTests = () => { await registry.setName({ crn, cid: watcherId }, privateKey, fee); // Query records should return it (some CRN points to it). - const records = await registry.queryRecords({ type: 'WebsiteRegistrationRecord', version: watcher.record.version }); - expect(records).toBeDefined(); - expect(records).toHaveLength(1); + const [record] = await registry.queryRecords({ type: 'WebsiteRegistrationRecord', version: watcher.record.version }); + expect(record).toBeDefined(); + expect(record.names).toHaveLength(1); }); test('Lookup name', async () => {