diff --git a/src/__tests__/diff2html-tests.ts b/src/__tests__/diff2html-tests.ts index 5591a61..ef68562 100644 --- a/src/__tests__/diff2html-tests.ts +++ b/src/__tests__/diff2html-tests.ts @@ -1260,7 +1260,7 @@ describe('Diff2Html', () => { }); describe('with auto colorScheme', () => { - it('should return a html diff with dark mode', () => { + it('should return a html diff with auto color scheme', () => { const result = html(diffExample1, { drawFileList: false, colorScheme: ColorSchemeType.AUTO, @@ -1319,6 +1319,86 @@ describe('Diff2Html', () => { " `); }); + + it('should include auto mode on file list', () => { + const result = html(diffExample1, { + drawFileList: true, + colorScheme: ColorSchemeType.AUTO, + }); + expect(result).toMatchInlineSnapshot(` + "
| + |
+ @@ -1 +1 @@
+ |
+
|
+ 1
+
+ |
+
+
+ -
+
+ |
+
|
+
+ 1
+ |
+
+
+ +
+ test1
+
+ |
+
| + |
+ @@ -1 +1 @@
+ |
+
|
+ 1
+
+ |
+
+
+ -
+
+ |
+
|
+
+ 1
+ |
+
+
+ +
+ test1
+
+ |
+