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

Tests fail on main #91

@jubnzv

Description

@jubnzv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions