Skip to content

System Init#1

Closed
itwahjoedi wants to merge 2 commits intomainfrom
trigger-ci
Closed

System Init#1
itwahjoedi wants to merge 2 commits intomainfrom
trigger-ci

Conversation

@itwahjoedi
Copy link
Copy Markdown
Member

Triggering CI for Branch Protection registration

@github-actions
Copy link
Copy Markdown

❌ MISSION FAILED

System status: REJECTED.
Your code did not pass the automated tests. Check the logs below:

Expand Test Logs

> codeijoe-protocol-one@1.0.0 test
> jest

FAIL tests/mission.test.js
  Protocol One: Error Handling Gates
    ✓ Gate 1: Normal Transaction (2 ms)
    ✕ Gate 2: Insufficient Funds (Must Throw) (6 ms)
    ✕ Gate 3: System Crash / Unexpected Error (Must Throw)

  ● Protocol One: Error Handling Gates › Gate 2: Insufficient Funds (Must Throw)

    expect(received).toThrow(expected)

    Expected substring: "Insufficient funds"

    Received function did not throw

    �[0m �[90m 16 |�[39m     expect(() �[33m=>�[39m {
     �[90m 17 |�[39m         processPayment(user�[33m,�[39m �[35m50�[39m)�[33m;�[39m
    �[31m�[1m>�[22m�[39m�[90m 18 |�[39m     })�[33m.�[39mtoThrow(�[32m"Insufficient funds"�[39m)�[33m;�[39m
     �[90m    |�[39m        �[31m�[1m^�[22m�[39m
     �[90m 19 |�[39m   })�[33m;�[39m
     �[90m 20 |�[39m
     �[90m 21 |�[39m   test(�[32m'Gate 3: System Crash / Unexpected Error (Must Throw)'�[39m�[33m,�[39m () �[33m=>�[39m {�[0m

      at Object.toThrow (tests/mission.test.js:18:8)

  ● Protocol One: Error Handling Gates › Gate 3: System Crash / Unexpected Error (Must Throw)

    expect(received).toThrow()

    Received function did not throw

    �[0m �[90m 24 |�[39m     expect(() �[33m=>�[39m {
     �[90m 25 |�[39m         processPayment(user�[33m,�[39m �[35m9999�[39m)�[33m;�[39m
    �[31m�[1m>�[22m�[39m�[90m 26 |�[39m     })�[33m.�[39mtoThrow()�[33m;�[39m
     �[90m    |�[39m        �[31m�[1m^�[22m�[39m
     �[90m 27 |�[39m   })�[33m;�[39m
     �[90m 28 |�[39m
     �[90m 29 |�[39m })�[33m;�[39m�[0m

      at Object.toThrow (tests/mission.test.js:26:8)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 1 passed, 3 total
Snapshots:   0 total
Time:        0.309 s
Ran all test suites.
...

Action Required: Fix your code and push again. Do not ask for review until this turns Green.

@itwahjoedi itwahjoedi closed this Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant