While processing files, the _saveFile method is invoked several times. This can be easily asserted in any test with skipFileOverride: false by adding the following code:
var spy = sinon.spy(configGenerator, '_saveFile');
configGenerator.process().then(function(config) {
assert.strictEqual(spy.callCount, 1);
}
While processing files, the
_saveFile
method is invoked several times. This can be easily asserted in any test withskipFileOverride: false
by adding the following code: