Skip to content

Commit

Permalink
Merge pull request #1415 from airqo-platform/Net-Recall
Browse files Browse the repository at this point in the history
[Netmanager] Device recallType implementations
  • Loading branch information
Baalmart committed Aug 14, 2023
2 parents edcd8c5 + 746bc7a commit 5433c08
Show file tree
Hide file tree
Showing 6 changed files with 733 additions and 84 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 5433c08

Please sign in to comment.