diff --git a/src/__tests__/diff2html-tests.ts b/src/__tests__/diff2html-tests.ts index 63f6eac..5591a61 100644 --- a/src/__tests__/diff2html-tests.ts +++ b/src/__tests__/diff2html-tests.ts @@ -1259,7 +1259,69 @@ describe('Diff2Html', () => { /* eslint-enable no-irregular-whitespace */ }); - describe('with dark mode flag', () => { + describe('with auto colorScheme', () => { + it('should return a html diff with dark mode', () => { + const result = html(diffExample1, { + drawFileList: false, + colorScheme: ColorSchemeType.AUTO, + }); + expect(result).toMatchInlineSnapshot(` + "
| + |
+ @@ -1 +1 @@
+ |
+
|
+ 1
+
+ |
+
+
+ -
+
+ |
+
|
+
+ 1
+ |
+
+
+ +
+ test1
+
+ |
+