diff --git a/spec/cordova/plugin/add.spec.js b/spec/cordova/plugin/add.spec.js index 02092795a..ec96cf60f 100644 --- a/spec/cordova/plugin/add.spec.js +++ b/spec/cordova/plugin/add.spec.js @@ -145,7 +145,7 @@ describe('cordova/plugin/add', function () { spyOn(fs, 'readFileSync').and.returnValue('file'); return add(projectRoot, hook_mock, { plugins: ['cordova-plugin-device'], cli_variables: cli_plugin_variables, save: 'true' }).then(function () { - expect(fs.writeFileSync).toHaveBeenCalledWith(jasmine.any(String), JSON.stringify({ cordova: { plugins: { 'cordova-plugin-device': cli_plugin_variables } }, dependencies: {}, devDependencies: {} }, null, 2), 'utf8'); + expect(fs.writeFileSync).toHaveBeenCalledWith(jasmine.any(String), JSON.stringify({ cordova: { plugins: { 'cordova-plugin-device': cli_plugin_variables } }, dependencies: {}, devDependencies: {} }, null, 2) + '\n', 'utf8'); }); }); it('should overwrite plugin information in config.xml after a successful installation', function () {