Skip to content

Commit 8fcae4b

Browse files
fix build
1 parent 5298947 commit 8fcae4b

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed
Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,28 @@
11
exports[`processor ::process match snapshot 1`] = `
22
Array [
3-
File {
4-
"content": Object {
3+
Object {
4+
"test": Object {
55
"test": Object {
6-
"test": Object {
7-
"touched": undefined,
8-
"untouched": "untouched",
9-
},
10-
"touched": "test",
6+
"touched": undefined,
117
"untouched": "untouched",
128
},
139
"touched": "test",
1410
"untouched": "untouched",
1511
},
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",
1814
},
19-
File {
20-
"content": Object {
15+
Object {
16+
"test": Object {
2117
"test": Object {
22-
"test": Object {
23-
"touched": "to be replaced",
24-
"untouched": "untouched",
25-
},
2618
"touched": "to be replaced",
2719
"untouched": "untouched",
2820
},
29-
"touched": "test",
21+
"touched": "to be replaced",
3022
"untouched": "untouched",
3123
},
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",
3426
},
3527
]
3628
`;

tests/processor.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ describe('processor', () => {
3131

3232
it(`match snapshot`, () => {
3333
processor.process();
34-
expect(processor.files).toMatchSnapshot();
34+
const content = processor.files.map((el) => el.content);
35+
36+
expect(content).toMatchSnapshot();
3537
});
3638
});
3739
});

0 commit comments

Comments
 (0)