liferay / liferay-module-config-generator

GNU Lesser General Public License v3.0
4 stars 8 forks source link

Files are saved multiple times #36

Closed jbalsas closed 7 years ago

jbalsas commented 7 years ago

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);
}