Update readme and test

This commit is contained in:
nabarun committed 2024-01-10 12:51:25 +05:30
1 parent a1e7af7ad1
commit 07ab733606
2 files changed
+15 -3

No files matched your search

+3 -3
View File
@@ -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 () => {