@putout/test 5.13.0 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/processor/index.js +4 -1
- package/package.json +1 -1
package/lib/processor/index.js
CHANGED
|
@@ -55,6 +55,9 @@ const createProcess = (dir, options) => (operator) => async (filename, plugins,
|
|
|
55
55
|
}),
|
|
56
56
|
);
|
|
57
57
|
|
|
58
|
+
if (isUpdate())
|
|
59
|
+
return operator.pass('fixtures updated');
|
|
60
|
+
|
|
58
61
|
return operator.equal(processedSource, output, 'fixtures should equal');
|
|
59
62
|
};
|
|
60
63
|
|
|
@@ -120,7 +123,7 @@ async function process(filename, dir, {processors, plugins, extension, fix = tru
|
|
|
120
123
|
processorRunners,
|
|
121
124
|
});
|
|
122
125
|
|
|
123
|
-
if (isUpdate() && !noChange)
|
|
126
|
+
if (isUpdate() && !noChange && fix)
|
|
124
127
|
await update(outputName, processedSource);
|
|
125
128
|
|
|
126
129
|
return {
|