File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ describe('core/render/utils', () => {
31
31
) ;
32
32
expect ( content ) . toBe ( 'My Ignore Title' ) ;
33
33
expect ( ignoreSubHeading ) . toBeTruthy ( ) ;
34
- expect ( ! ! ignoreAllSubs ) . toBeFalsy ( ) ;
34
+ expect ( ignoreAllSubs === undefined ) . toBeTruthy ( ) ;
35
35
} ) ;
36
36
37
37
test ( 'getAndRemoveDocisfyIgnorConfig from <!-- {docsify-ignore-all} -->' , ( ) => {
@@ -41,15 +41,15 @@ describe('core/render/utils', () => {
41
41
) ;
42
42
expect ( content ) . toBe ( 'My Ignore Title' ) ;
43
43
expect ( ignoreAllSubs ) . toBeTruthy ( ) ;
44
- expect ( ! ! ignoreSubHeading ) . toBeFalsy ( ) ;
44
+ expect ( ignoreSubHeading === undefined ) . toBeTruthy ( ) ;
45
45
} ) ;
46
46
47
47
test ( 'getAndRemoveDocisfyIgnorConfig from {docsify-ignore}' , ( ) => {
48
48
const { content, ignoreAllSubs, ignoreSubHeading } =
49
49
getAndRemoveDocisfyIgnorConfig ( 'My Ignore Title{docsify-ignore}' ) ;
50
50
expect ( content ) . toBe ( 'My Ignore Title' ) ;
51
51
expect ( ignoreSubHeading ) . toBeTruthy ( ) ;
52
- expect ( ! ! ignoreAllSubs ) . toBeFalsy ( ) ;
52
+ expect ( ignoreAllSubs === undefined ) . toBeTruthy ( ) ;
53
53
} ) ;
54
54
55
55
test ( 'getAndRemoveDocisfyIgnorConfig from {docsify-ignore-all}' , ( ) => {
You can’t perform that action at this time.
0 commit comments