File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 24
24
"scripts" : {
25
25
"storybook" : " start-storybook -s ./node_modules/@salesforce-ux/design-system -p 9001 -c .storybook" ,
26
26
"test" : " echo \" no test to run\" " ,
27
- "pretest:visual" : " storycap --serverCmd \" npm run storybook -- --ci\" http://localhost:9001 -o images --serverTimeout 3600000 --captureTimeout 10000 --delay 2000" ,
27
+ "pretest:visual" : " storycap --serverCmd \" NODE_ENV=test npm run storybook -- --ci\" http://localhost:9001 -o images --serverTimeout 3600000 --captureTimeout 10000 --delay 2000" ,
28
28
"test:visual" : " reg-suit -v run" ,
29
29
"type-check" : " tsc --noEmit" ,
30
30
"type-check:watch" : " npm run type-check -- --watch" ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ type Calendar = {
50
50
function createCalendarObject ( date ?: string , mnDate ?: string , mxDate ?: string ) {
51
51
let minDate ;
52
52
let maxDate ;
53
- let d = dayjs ( date , 'YYYY-MM-DD' ) ;
53
+ let d = dayjs ( date ?? null , 'YYYY-MM-DD' ) ;
54
54
if ( ! d . isValid ( ) ) {
55
55
d = dayjs ( getToday ( ) , 'YYYY-MM-DD' ) ;
56
56
}
Original file line number Diff line number Diff line change 1
- import { nanoid } from 'nanoid' ;
1
+ import { nanoid } from 'nanoid/non-secure ' ;
2
2
import { updateScroll } from 'react-relative-portal' ;
3
3
4
4
export const generateUniqueId : ( ) => string =
5
5
process . env . NODE_ENV === 'test' ? ( ) => '$uuid$' : nanoid ;
6
6
7
7
export const getToday =
8
8
process . env . NODE_ENV === 'test'
9
- ? ( ) => '2017-02-23 '
9
+ ? ( ) => '2022-05-18 '
10
10
: ( ) => new Date ( ) . toISOString ( ) . substring ( 0 , 10 ) ;
11
11
12
12
let assetRoot = '/assets' ;
You can’t perform that action at this time.
0 commit comments