4
4
5
5
import { TaskLayoutOptions } from '../../src/Layout/TaskLayoutOptions' ;
6
6
import { QueryLayoutOptions } from '../../src/Layout/QueryLayoutOptions' ;
7
- import { TaskLayout } from '../../src/Layout/TaskLayout' ;
7
+ import { QueryLayout , TaskLayout } from '../../src/Layout/TaskLayout' ;
8
8
9
9
describe ( 'TaskLayout tests' , ( ) => {
10
10
it ( 'should generate expected CSS classes for default layout' , ( ) => {
11
11
const taskLayout = new TaskLayout ( ) ;
12
- expect (
13
- [ ...taskLayout . applyTaskLayoutOptions ( ) , ...taskLayout . applyQueryLayoutOptions ( ) ] . join ( '\n' ) ,
14
- ) . toMatchInlineSnapshot ( '"tasks-layout-hide-urgency"' ) ;
12
+ const queryLayout = new QueryLayout ( ) ;
13
+
14
+ const hiddenClasses = [ ...taskLayout . applyTaskLayoutOptions ( ) , ...queryLayout . applyQueryLayoutOptions ( ) ] ;
15
+ expect ( hiddenClasses . join ( '\n' ) ) . toMatchInlineSnapshot ( '"tasks-layout-hide-urgency"' ) ;
15
16
} ) ;
16
17
17
18
it ( 'should generate expected CSS classes with all default options reversed' , ( ) => {
@@ -26,9 +27,10 @@ describe('TaskLayout tests', () => {
26
27
} ) ;
27
28
28
29
const taskLayout = new TaskLayout ( taskLayoutOptions , queryLayoutOptions ) ;
30
+ const queryLayout = new QueryLayout ( queryLayoutOptions ) ;
29
31
30
- expect ( [ ...taskLayout . applyTaskLayoutOptions ( ) , ...taskLayout . applyQueryLayoutOptions ( ) ] . join ( '\n' ) )
31
- . toMatchInlineSnapshot ( `
32
+ const hiddenClasses = [ ...taskLayout . applyTaskLayoutOptions ( ) , ...queryLayout . applyQueryLayoutOptions ( ) ] ;
33
+ expect ( hiddenClasses . join ( '\n' ) ) . toMatchInlineSnapshot ( `
32
34
"tasks-layout-hide-id
33
35
tasks-layout-hide-blockedBy
34
36
tasks-layout-hide-priority
0 commit comments