Skip to content

Commit af50934

Browse files
committed
test(e2e): add tests for subhandles and virtual subhandles
1 parent f13f9d3 commit af50934

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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)