Skip to content

Commit 47fb24f

Browse files
committed
fix: update error handling test to expect correct error code
The test was expecting 0x6984 (INVALID_DATA) but invalid CLA (0xFF) actually triggers 0x6E00 (CLA_NOT_SUPPORTED) which is the correct behavior.
1 parent ae2eaa9 commit 47fb24f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/error-handling.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ describe('Error Handling', () => {
4747
expect(elapsedTime).toBeLessThan(1000)
4848

4949
// Check if we got the expected error code
50-
expect(error.statusCode).toBe(0x6984)
50+
// Invalid CLA (0xFF) triggers CLA_NOT_SUPPORTED (0x6E00)
51+
expect(error.statusCode).toBe(0x6E00)
5152
}
5253
} finally {
5354
await sim.close()

0 commit comments

Comments
 (0)