1
0
Fork 0
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:
Chaim Lev-Ari 2023-01-10 21:30:49 +02:00 committed by GitHub
parent 6c193a8a45
commit baf9c3db0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 170 additions and 48 deletions

View file

@ -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;