Skip to content

Commit f487dad

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)