Stack data structure almost completed with tests #7
Jest Test Results
These are all the test results I was able to find from your jest-junit reporter
36 tests were completed in 1.265s with 23 passed ✔ and 13 failed ✖ tests.
Annotations
Check failure on line 29 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "canEnqueue" > should return true if queue is empty
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: undefined
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:28:34)
Check failure on line 35 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "canEnqueue" > should return false if queue is full
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: undefined
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:34:34)
Check failure on line 45 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "isEmpty" > should return true if queue is empty, false if it contains any elements
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: undefined
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:44:31)
Check failure on line 50 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "isEmpty" > should return false if queue contains any elements
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: undefined
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:49:31)
Check failure on line 63 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "enqueue" > should add the indicated element to the end of the queue
Error: expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 0
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:61:41)
Check failure on line 67 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "enqueue" > should return the queue when an element is inserted
Error: expect(received).toEqual(expected) // deep equality
Expected: [19]
Received: undefined
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:66:33)
Check failure on line 73 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "enqueue" > should insert the elements in the received order
Error: expect(received).toEqual(expected) // deep equality
- Expected - 4
+ Received + 1
- Array [
- 19,
- 88,
- ]
+ Array []
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:72:34)
Check failure on line 79 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "enqueue" > should throw error with message "QUEUE_OVERFLOW" if the queue is full
Error: expect(received).toThrow(expected)
Expected message: "QUEUE_OVERFLOW"
Received function did not throw
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:78:39)
Check failure on line 91 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "dequeue" > should return the element removed from the beggining of the queue
Error: expect(received).toBe(expected) // Object.is equality
Expected: 19
Received: undefined
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:90:31)
Check failure on line 95 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "dequeue" > should throw error with message "QUEUE_UNDERFLOW" if there are no elements in the queue
Error: expect(received).toThrow(expected)
Expected message: "QUEUE_UNDERFLOW"
Received function did not throw
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:94:37)
Check failure on line 106 in ./tests/02-queue-data-structure.spec.js
github-actions / Jest
Queue Method "display" > should return contents of queue
Error: expect(received).toEqual(expected) // deep equality
Expected: [10]
Received: undefined
Stacktrace:
at Object.<anonymous> (tests/02-queue-data-structure.spec.js:105:31)
Check failure on line 35 in ./tests/01-stack-data-structure.spec.js
github-actions / Jest
Stack Method "canPush" > should return false if stack is full
TypeError: stack.expect is not a function
Stacktrace:
at Object.<anonymous> (tests/01-stack-data-structure.spec.js:34:13)
Check failure on line 104 in ./tests/01-stack-data-structure.spec.js
github-actions / Jest
Stack Method "display" > should return contents of stack
Error: expect(received).toEqual(expected) // deep equality
Expected: [10]
Received: undefined
Stacktrace:
at Object.<anonymous> (tests/01-stack-data-structure.spec.js:103:31)