Skip to content

Commit a7a1a9c

Browse files
authored
Merge pull request #1613 from input-output-hk/test/LW-12621-subhandle
LW-12621 subhandles and virtual subhandles tests
2 parents f8e8b24 + af50934 commit a7a1a9c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/cardano-services-client/src/HandleProvider/KoraLabsHandleProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// cSpell:ignore kora koralabs
12
import {
23
Asset,
34
Cardano,

packages/e2e/test/handle/KoraLabsHandleProvider.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// cSpell:ignore kora subhandles
12
/* eslint-disable no-magic-numbers */
23
/* eslint-disable camelcase */
34
import { Cardano, HandleResolution } from '@cardano-sdk/core';
@@ -52,6 +53,16 @@ describe('KoraLabsHandleProvider', () => {
5253
expect(resultN).toBe(null);
5354
checkHandleResolution('test_handle_1', result1);
5455
});
56+
57+
test('HandleProvider should resolve handle, subhandles and virtual subhandles', async () => {
58+
const [result1, result2, result3] = await provider.resolveHandles({
59+
handles: ['handle', 'ada.handle', '[email protected]']
60+
});
61+
62+
checkHandleResolution('handle', result1);
63+
checkHandleResolution('ada.handle', result2);
64+
checkHandleResolution('[email protected]', result3);
65+
});
5566
});
5667

5768
describe('health checks', () => {

0 commit comments

Comments
 (0)