Skip to content

Commit 5b67b9e

Browse files
committed
comment
1 parent fe17cb0 commit 5b67b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/useId.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default useOriginId
4848
return id;
4949
}
5050

51-
// Test env always return mock id
51+
// By default, test env always return mock id, but also allow force use id for test case which need to test id logic.
5252
if (!forceUseId && process.env.NODE_ENV === 'test') {
5353
return 'test-id';
5454
}
@@ -72,7 +72,7 @@ export default useOriginId
7272
return id;
7373
}
7474

75-
// Test env always return mock id
75+
// By default, test env always return mock id, but also allow force use id for test case which need to test id logic.
7676
if (!forceUseId && process.env.NODE_ENV === 'test') {
7777
return 'test-id';
7878
}

0 commit comments

Comments
 (0)