Commit b0a2a349 authored by Phil Hughes's avatar Phil Hughes

resolve editor conflicts

[ci skip]
parent a23ad6a4
export default [{
<<<<<<< HEAD
readOnly: model => !!model.file.file_lock,
=======
>>>>>>> upstream/master
}];
......@@ -4,11 +4,8 @@ describe('Multi-file editor library editor options', () => {
it('returns an array', () => {
expect(editorOptions).toEqual(jasmine.any(Array));
});
<<<<<<< HEAD
it('contains readOnly option', () => {
expect(editorOptions[0].readOnly).toBeDefined();
});
=======
>>>>>>> upstream/master
});
......@@ -92,37 +92,6 @@ describe('Multi-file editor library', () => {
expect(instance.dirtyDiffController.reDecorate).toHaveBeenCalledWith(model);
});
<<<<<<< HEAD
describe('updateOptions', () => {
it('defaults readOnly to false', () => {
spyOn(instance.instance, 'updateOptions');
instance.attachModel(model);
expect(instance.instance.updateOptions).toHaveBeenCalledWith({
readOnly: false,
});
});
it('puts editor into readOnly mode when file is locked', () => {
spyOn(instance.instance, 'updateOptions');
Object.assign(model.file, {
file_lock: {
name: 'test',
},
});
instance.attachModel(model);
expect(instance.instance.updateOptions).toHaveBeenCalledWith({
readOnly: true,
});
});
});
=======
>>>>>>> upstream/master
});
describe('clearEditor', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment