Skip to content

Commit 5bf6cd5

Browse files
committed
test: align metadata and comments to CLA_NOT_SUPPORTED (0x6E00)
- Update test title to reference 0x6E00 (CLA_NOT_SUPPORTED) instead of 0x6984 - Update comment before transport.send to reference CLA_NOT_SUPPORTED - Update comment on thrown error to reference CLA_NOT_SUPPORTED This aligns test documentation with the actual error code (0x6E00) that the test assertion validates, removing confusion about which error is being tested.
1 parent b4cf22f commit 5bf6cd5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/error-handling.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ const ZEMU_OPTIONS_S: IStartOptions = {
1616
}
1717

1818
describe('Error Handling', () => {
19-
test('Should fail fast on error 0x6984 instead of timing out', async () => {
19+
test('Should fail fast on error 0x6E00 (CLA_NOT_SUPPORTED) instead of timing out', async () => {
2020
const sim = new Zemu(DEMO_APP_PATH_S)
2121

2222
try {
2323
await sim.start(ZEMU_OPTIONS_S)
2424
const transport = sim.getTransport()
2525

26-
// Send an invalid APDU command that should trigger error 0x6984
26+
// Send an invalid APDU command that should trigger CLA_NOT_SUPPORTED (0x6E00)
2727
// CLA=0xFF is typically invalid for Ledger apps
2828
const invalidCLA = 0xff
2929
const validINS = 0x00
@@ -34,7 +34,7 @@ describe('Error Handling', () => {
3434
const startTime = Date.now()
3535

3636
try {
37-
// This should fail with error 0x6984 (invalid data)
37+
// This should fail with CLA_NOT_SUPPORTED (0x6E00)
3838
await transport.send(invalidCLA, validINS, p1, p2)
3939

4040
// If we get here, the test failed - we expected an error

0 commit comments

Comments
 (0)