Skip to content

adds an item with new design criteria #61

adds an item with new design criteria

adds an item with new design criteria #61

Triggered via pull request March 26, 2024 00:30
Status Failure
Total duration 1m 2s
Artifacts

node.js.yml

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

Annotations

3 errors and 1 warning
tests/components/AddItemForm/AddItemForm.test.jsx > AddItemForm > Adds Item successfully: tests/components/AddItemForm/AddItemForm.test.jsx#L64
AssertionError: expected "addItem" to be called with arguments: [ '/test-list', { …(2) } ] Received: 1st addItem call: Array [ "/test-list", Object { - "daysUntilNextPurchase": 7, + "daysUntilNextPurchase": 0, "itemName": "Hello, World!", }, ] Number of calls: 1 ❯ tests/components/AddItemForm/AddItemForm.test.jsx:64:25
tests/components/AddItemForm/AddItemForm.test.jsx > AddItemForm > Adds item but get an error: tests/components/AddItemForm/AddItemForm.test.jsx#L97
AssertionError: expected "addItem" to be called with arguments: [ '/test-list', { …(2) } ] Received: 1st addItem call: Array [ "/test-list", Object { - "daysUntilNextPurchase": 7, + "daysUntilNextPurchase": 0, "itemName": "Hello, World!", }, ] Number of calls: 1 ❯ tests/components/AddItemForm/AddItemForm.test.jsx:97:25
build (^18.2.0)
Process completed with exit code 1.
build (^18.2.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.