Skip to content

Commit 4bfbec7

Browse files
committed
test(wasm-sdk): re-add dropped test
1 parent 38f8b50 commit 4bfbec7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/wasm-sdk/test/state-transitions.test.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,24 @@ const TOKEN_CONTRACT = 'Hqyu8WcRwXCTwbNxdga4CN5gsVEGc67wng4TFzceyLUv';
6464
// Identity State Transitions
6565
describe('Identity State Transitions');
6666

67+
await test('identity_create - requires funding', async () => {
68+
try {
69+
// Would need funding transaction
70+
const result = await wasmSdk.identity_create(
71+
sdk,
72+
TEST_MNEMONIC,
73+
null, // no alias
74+
0 // key index
75+
);
76+
throw new Error('Should fail without funding');
77+
} catch (error) {
78+
if (error.message.includes('Should fail')) {
79+
throw error;
80+
}
81+
console.log(' Expected error without funding');
82+
}
83+
});
84+
6785
await test('identity_create with all SECP256K1 keys (common scenario)', async () => {
6886
try {
6987
// Generate unique keys for testing (1 asset lock + 3 identity keys)

0 commit comments

Comments
 (0)