File tree Expand file tree Collapse file tree 2 files changed +13
-19
lines changed Expand file tree Collapse file tree 2 files changed +13
-19
lines changed Original file line number Diff line number Diff line change 1
1
exports [` processor ::process match snapshot 1` ] = `
2
2
Array [
3
- File {
4
- " content " : Object {
3
+ Object {
4
+ " test " : Object {
5
5
" test" : Object {
6
- " test" : Object {
7
- " touched" : undefined ,
8
- " untouched" : " untouched" ,
9
- },
10
- " touched" : " test" ,
6
+ " touched" : undefined ,
11
7
" untouched" : " untouched" ,
12
8
},
13
9
" touched" : " test" ,
14
10
" untouched" : " untouched" ,
15
11
},
16
- " outputPath " : " /home/eugene-matvejev/prototype/node.js-parameter-handler/var/settings1.json " ,
17
- " sourcePath " : " /home/eugene-matvejev/prototype/node.js-parameter-handler/tests/fixtures/settings.json.dist " ,
12
+ " touched " : " test " ,
13
+ " untouched " : " untouched " ,
18
14
} ,
19
- File {
20
- " content " : Object {
15
+ Object {
16
+ " test " : Object {
21
17
" test" : Object {
22
- " test" : Object {
23
- " touched" : " to be replaced" ,
24
- " untouched" : " untouched" ,
25
- },
26
18
" touched" : " to be replaced" ,
27
19
" untouched" : " untouched" ,
28
20
},
29
- " touched" : " test " ,
21
+ " touched" : " to be replaced " ,
30
22
" untouched" : " untouched" ,
31
23
},
32
- " outputPath " : " /home/eugene-matvejev/prototype/node.js-parameter-handler/var/settings2.json " ,
33
- " sourcePath " : " /home/eugene-matvejev/prototype/node.js-parameter-handler/tests/fixtures/settings.json.dist " ,
24
+ " touched " : " test " ,
25
+ " untouched " : " untouched " ,
34
26
} ,
35
27
]
36
28
` ;
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ describe('processor', () => {
31
31
32
32
it ( `match snapshot` , ( ) => {
33
33
processor . process ( ) ;
34
- expect ( processor . files ) . toMatchSnapshot ( ) ;
34
+ const content = processor . files . map ( ( el ) => el . content ) ;
35
+
36
+ expect ( content ) . toMatchSnapshot ( ) ;
35
37
} ) ;
36
38
} ) ;
37
39
} ) ;
You can’t perform that action at this time.
0 commit comments