Skip to content

Commit

Permalink
tests of the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarv committed Aug 14, 2023
1 parent bb6129b commit 746bc7a
Show file tree
Hide file tree
Showing 2 changed files with 521 additions and 0 deletions.
19 changes: 19 additions & 0 deletions netmanager/src/__tests__/RecallDevice.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import DeviceDeployStatus from '../views/components/DataDisplay/DeviceView/DeviceDeployStatus';

jest.mock('react-redux', () => ({
useDispatch: () => jest.fn(),
}));

// i have used the DeviceDeployStatus for the tests because all the functions for the recall an deploy are in
// this component

describe('RecallDevice', () => {
it('renders without errors', () => {
const { asFragment } = render(
<DeviceDeployStatus deviceData={{}} siteOptions={[]} />
);
expect(asFragment()).toMatchSnapshot();
});
});
Loading

0 comments on commit 746bc7a

Please sign in to comment.