.then(()=>assert.fail('Should fail with parse errors'),
error=>assert.equal(error.message,'Unable to write to the keybindings configuration file. Please open it to correct errors/warnings in the file and try again.'));
assert.equal(error.message,'Unable to write to the keybindings configuration file. Please open it to correct errors/warnings in the file and try again.');
.then(()=>assert.fail('Should fail with parse errors'),
error=>assert.equal(error.message,'Unable to write to the keybindings configuration file. Please open it to correct errors/warnings in the file and try again.'));
assert.equal(error.message,'Unable to write to the keybindings configuration file. Please open it to correct errors/warnings in the file and try again.');
.then(()=>assert.fail('Should fail with dirty error'),
error=>assert.equal(error.message,'Unable to write to the keybindings configuration file. It has an object which is not of type Array. Please open the file to clean up and try again.'));
test('errors cases - did not find an array',async()=>{
assert.equal(error.message,'Unable to write to the keybindings configuration file. It has an object which is not of type Array. Please open the file to clean up and try again.');
}
});
test('edit a default keybinding to an empty file',()=>{
fs.writeFileSync(keybindingsFile,'');
test('edit a default keybinding to an empty file',async()=>{