mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
feat(environments): add edge device [EE-4840] (#8246)
* feat(environments): add edge device [EE-4840] fix [EE-4840] * fix(home): fix tests
This commit is contained in:
parent
6c193a8a45
commit
baf9c3db0a
10 changed files with 170 additions and 48 deletions
|
@ -1,6 +1,5 @@
|
|||
import { createMockEnvironment } from '@/react-tools/test-mocks';
|
||||
import { renderWithQueryClient } from '@/react-tools/test-utils';
|
||||
import { rest, server } from '@/setup-tests/server';
|
||||
|
||||
import { EdgeIndicator } from './EdgeIndicator';
|
||||
|
||||
|
@ -25,8 +24,6 @@ async function renderComponent(
|
|||
checkInInterval = 0,
|
||||
queryDate = 0
|
||||
) {
|
||||
server.use(rest.get('/api/settings', (req, res, ctx) => res(ctx.json({}))));
|
||||
|
||||
const environment = createMockEnvironment();
|
||||
|
||||
environment.EdgeID = edgeId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue