File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export const TASK_FORMATS = {
61
61
export type TASK_FORMATS = typeof TASK_FORMATS ; // For convenience to make some typing easier
62
62
63
63
export interface Settings {
64
+ include : Record < string , string > ;
64
65
globalQuery : string ;
65
66
globalFilter : string ;
66
67
removeGlobalFilter : boolean ;
@@ -96,6 +97,7 @@ export interface Settings {
96
97
}
97
98
98
99
const defaultSettings : Settings = {
100
+ include : { } ,
99
101
globalQuery : '' ,
100
102
globalFilter : '' ,
101
103
removeGlobalFilter : false ,
Original file line number Diff line number Diff line change
1
+ import { getSettings } from '../../src/Config/Settings' ;
1
2
import { Query } from '../../src/Query/Query' ;
2
3
import { TasksFile } from '../../src/Scripting/TasksFile' ;
3
4
@@ -11,3 +12,11 @@ describe('include tests', () => {
11
12
expect ( query . filters [ 0 ] . statement . anyPlaceholdersExpanded ) . toEqual ( 'not done' ) ;
12
13
} ) ;
13
14
} ) ;
15
+
16
+ describe ( 'include settings tests' , ( ) => {
17
+ it ( 'should have an empty include field' , ( ) => {
18
+ const settings = getSettings ( ) ;
19
+
20
+ expect ( settings . include ) . toEqual ( { } ) ;
21
+ } ) ;
22
+ } ) ;
You can’t perform that action at this time.
0 commit comments