Skip to content

Integration test improvements #794

Integration test improvements

Integration test improvements #794

Triggered via pull request July 3, 2024 00:57
@gcgc
synchronize #5935
otherchanges
Status Failure
Total duration 1m 29s
Artifacts

unit_tests.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
tests/unit/GeneralBank.test.ts > GeneralBank > removes items correctly and respects item non-existence: tests/unit/GeneralBank.test.ts#L12
Error: Key gold does not start with F ❯ GeneralBank.validator tests/unit/GeneralBank.test.ts:12:36 ❯ GeneralBank.validate src/lib/structures/GeneralBank.ts:78:9 ❯ GeneralBank.addItem src/lib/structures/GeneralBank.ts:111:8 ❯ GeneralBank.add src/lib/structures/GeneralBank.ts:136:9 ❯ tests/unit/GeneralBank.test.ts:31:8
tests/unit/GeneralBank.test.ts > GeneralBank > handles cloning correctly: tests/unit/GeneralBank.test.ts#L12
Error: Key gold does not start with F ❯ GeneralBank.validator tests/unit/GeneralBank.test.ts:12:36 ❯ GeneralBank.validate src/lib/structures/GeneralBank.ts:78:9 ❯ GeneralBank.addItem src/lib/structures/GeneralBank.ts:111:8 ❯ GeneralBank.add src/lib/structures/GeneralBank.ts:136:9 ❯ tests/unit/GeneralBank.test.ts:38:8
tests/unit/GeneralBank.test.ts > GeneralBank 2 > ensures immutability after cloning: tests/unit/GeneralBank.test.ts#L95
AssertionError: expected 120 to be 100 // Object.is equality - Expected + Received - 100 + 120 ❯ tests/unit/GeneralBank.test.ts:95:34
tests/unit/GeneralBank.test.ts > Bank with allowedKeys > allows removing items with allowed keys: src/lib/structures/GeneralBank.ts#L64
Error: Key Fplatinum (string) is not allowed, only these are allowed: Fgold, Fsilver, Fcopper ❯ GeneralBank.validate src/lib/structures/GeneralBank.ts:64:12 ❯ GeneralBank.addItem src/lib/structures/GeneralBank.ts:111:8 ❯ GeneralBank.add src/lib/structures/GeneralBank.ts:136:9 ❯ tests/unit/GeneralBank.test.ts:141:8
tests/unit/GeneralBank.test.ts > Bank with allowedKeys > throws error on attempt to clone with disallowed key modifications: src/lib/structures/GeneralBank.ts#L64
Error: Key Fplatinum (string) is not allowed, only these are allowed: Fgold, Fsilver, Fcopper ❯ GeneralBank.validate src/lib/structures/GeneralBank.ts:64:12 ❯ new GeneralBank src/lib/structures/GeneralBank.ts:40:8 ❯ GeneralBank.clone src/lib/structures/GeneralBank.ts:48:10 ❯ tests/unit/GeneralBank.test.ts:147:26
tests/unit/GeneralBank.test.ts > Bank with allowedKeys > ensures that operations on cloned banks respect original allowed keys: src/lib/structures/GeneralBank.ts#L64
Error: Key Fplatinum (string) is not allowed, only these are allowed: Fgold, Fsilver, Fcopper ❯ GeneralBank.validate src/lib/structures/GeneralBank.ts:64:12 ❯ new GeneralBank src/lib/structures/GeneralBank.ts:40:8 ❯ GeneralBank.clone src/lib/structures/GeneralBank.ts:48:10 ❯ tests/unit/GeneralBank.test.ts:154:26
Node v20 - ubuntu-latest
Process completed with exit code 1.
Node v20 - ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.