Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Tests fail on main #91

Open
jubnzv opened this issue Sep 15, 2022 · 0 comments
Open

Tests fail on main #91

jubnzv opened this issue Sep 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jubnzv
Copy link

jubnzv commented Sep 15, 2022

yarn test fails with an error on dashBoardTest:

 FAIL  src/__tests__/dashboardTest.tsx
  ● Non-Isolated Server <Dashboard /> › matches snapshot

    expect(received).toMatchSnapshot()

    Snapshot name: `Non-Isolated Server <Dashboard /> matches snapshot 1`

    - Snapshot
    + Received

    @@ -295,66 +295,10 @@
                          </ValTxnList>
                        </div>
                      </Col>
                    </div>
                  </Row>
    -             <Row
    -               className="mt-3"
    -               noGutters={false}
    -             >
    -               <div
    -                 className="mt-3 row"
    -               >
    -                 <Col
    -                   className="p-0"
    -                 >
    -                   <div
    -                     className="p-0 col"
    -                   >
    -                     <PendTxnList>
    -                       <Card
    -                         body={false}
    -                         className="pendtxlist-card"
    -                       >
    -                         <div
    -                           className="pendtxlist-card card"
    -                         >
    -                           <CardHeader>
    -                             <div
    -                               className="card-header"
    -                             >
    -                               <div
    -                                 className="pendtxlist-card-header"
    -                               >
    -                                 <span>
    -                                   Pending Transactions
    -                                 </span>
    -                               </div>
    -                             </div>
    -                           </CardHeader>
    -                           <CardBody>
    -                             <div
    -                               className="card-body"
    -                             >
    -                               <Spinner
    -                                 animation="border"
    -                                 role="status"
    -                               >
    -                                 <div
    -                                   className="spinner-border"
    -                                   role="status"
    -                                 />
    -                               </Spinner>
    -                             </div>
    -                           </CardBody>
    -                         </div>
    -                       </Card>
    -                     </PendTxnList>
    -                   </div>
    -                 </Col>
    -               </div>
    -             </Row>
                </div>
              </Container>
            </div>
          </Dashboard>
        </Router>

      46 | 
      47 |   it('matches snapshot', () => {
    > 48 |     expect(dashboard).toMatchSnapshot()
         |                       ^
      49 |   })
      50 | 
      51 | })

      at Object.<anonymous> (src/__tests__/dashboardTest.tsx:48:23)

We should fix the failed test and add tests to the CI.

@jubnzv jubnzv added the bug Something isn't working label Sep 15, 2022
@jubnzv jubnzv changed the title Tests fail on the current main Tests fail on main Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant