feat: finished phase 3

This commit is contained in:
2026-02-16 12:11:27 +01:00
parent c5c3a55a5c
commit 9f3b5d0867
6 changed files with 193 additions and 5 deletions

View File

@@ -166,6 +166,28 @@ describe('AppStore', () => {
expect(getStore().preferredEditorMode).toBe('markdown');
});
it('should default git diff preferences to wrapped inline and visible unchanged regions', () => {
expect(getStore().gitDiffPreferences).toEqual({
wordWrap: true,
viewStyle: 'inline',
hideUnchangedRegions: false,
});
});
it('should update git diff preferences', () => {
getStore().setGitDiffPreferences({
wordWrap: false,
viewStyle: 'side-by-side',
hideUnchangedRegions: true,
});
expect(getStore().gitDiffPreferences).toEqual({
wordWrap: false,
viewStyle: 'side-by-side',
hideUnchangedRegions: true,
});
});
});
describe('Type Contract', () => {