Skip to content

Commit d93500d

Browse files
committed
Use constant NIL in lib "uuid"
Signed-off-by: Franck LECUYER <[email protected]>
1 parent ec42549 commit d93500d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/app.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ import { createTheme, CssBaseline, StyledEngineProvider, ThemeProvider } from '@
1414
import { SnackbarProvider } from '@gridsuite/commons-ui';
1515
import { store } from '../redux/store';
1616
import App from './app';
17+
import { NIL as NIL_UUID } from 'uuid';
1718

18-
jest.mock('uuid', () => ({ v4: () => '00000000-0000-0000-0000-000000000000' }));
19+
jest.mock('uuid', () => ({ v4: () => NIL_UUID }));
1920

2021
let container: HTMLDivElement | null = null;
2122
beforeEach(() => {

src/components/tree.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
import { ElementType } from '@gridsuite/commons-ui';
99
import { updatedTree } from './treeview-utils';
10+
import { NIL as NIL_UUID } from 'uuid';
1011

11-
jest.mock('uuid', () => ({ v4: () => '00000000-0000-0000-0000-000000000000' }));
12+
jest.mock('uuid', () => ({ v4: () => NIL_UUID }));
1213

1314
const otherProperties = {
1415
description: 'desc',

0 commit comments

Comments
 (0)