diff --git a/src/__tests__/diff2html-tests.ts b/src/__tests__/diff2html-tests.ts index b662c1a..6ca82ff 100644 --- a/src/__tests__/diff2html-tests.ts +++ b/src/__tests__/diff2html-tests.ts @@ -624,213 +624,214 @@ describe('Diff2Html', () => { ' \n'; const result = html(diffExample2, { drawFileList: false }); expect(result).toMatchInlineSnapshot(` - "
| - |
- @@ -1,7 +1,6 @@
- |
-
|
- 1
- 1
- |
-
-
-
- # Change Log
-
- |
-
|
- 2
- 2
- |
-
-
-
- All notable changes to this project will be documented in this file.
-
- |
-
|
- 3
- 3
- |
-
-
-
- This project adheres to [Semantic Versioning](http://semver.org/).
-
- |
-
|
- 4
-
- |
-
-
- -
- $a="<table><tr><td>Use the following format for additions: \` - VERSION: [feature/patch (if applicable)] Short description of change. Links to relevant issues/PRs.\`
-
- |
-
|
- 5
- 4
- |
-
-
-
- $a="<table><tr><td>
-
- |
-
|
- 6
- 5
- |
-
-
-
- $a="<table><tr><td>- 1.1.9: Fix around ubuntu's inability to cache promises. [#877](https://github.com/FredrikNoren/ungit/pull/878)
-
- |
-
|
- 7
- 6
- |
-
-
-
- - 1.1.8:
-
- |
-
| - |
- @@ -11,7 +10,7 @@ $a="<table><tr><td>- 1.1.9: Fix around ubuntu's inability to cache promises. [#8
- |
-
|
- 11
- 10
- |
-
-
-
- - 1.1.7:
-
- |
-
|
- 12
- 11
- |
-
-
-
- - Fix diff flickering issue and optimization [#865](https://github.com/FredrikNoren/ungit/pull/865)
-
- |
-
|
- 13
- 12
- |
-
-
-
- - Fix credential dialog issue [#864](https://github.com/FredrikNoren/ungit/pull/864)
-
- |
-
|
- 14
-
- |
-
-
- -
- - Fix HEAD branch order when redraw [#858](https://github.com/FredrikNoren/ungit/issues/858)
-
- |
-
|
-
- 13
- |
-
-
- +
- 4 - Fix HEAD branch order when redraw [#858](https://github.com/FredrikNoren/ungit/issues/858)
-
- |
-
|
- 15
- 14
- |
-
-
-
- - 1.1.6: Fix path auto complete [#861](https://github.com/FredrikNoren/ungit/issues/861)
-
- |
-
|
- 16
- 15
- |
-
-
-
- - 1.1.5: Update "Toggle all" button after commit or changing selected files [#859](https://github.com/FredrikNoren/ungit/issues/859)
-
- |
-
|
- 17
- 16
- |
-
-
-
- - 1.1.4: [patch] Promise refactoring
-
- |
-
|
- 18
- 17
- |
-
-
-
-
- |
-
| + |
+ @@ -1,7 +1,6 @@
+ |
+
|
+ 1
+1
+ |
+
+
+
+ # Change Log
- "
- `);
+ |
+
|
+ 2
+2
+ |
+
+
+
+ All notable changes to this project will be documented in this file.
+
+ |
+
|
+ 3
+3
+ |
+
+
+
+ This project adheres to [Semantic Versioning](http://semver.org/).
+
+ |
+
|
+ 4
+
+ |
+
+
+ -
+ $a="<table><tr><td>Use the following format for additions: \` - VERSION: [feature/patch (if applicable)] Short description of change. Links to relevant issues/PRs.\`
+
+ |
+
|
+ 5
+4
+ |
+
+
+
+ $a="<table><tr><td>
+
+ |
+
|
+ 6
+5
+ |
+
+
+
+ $a="<table><tr><td>- 1.1.9: Fix around ubuntu's inability to cache promises. [#877](https://github.com/FredrikNoren/ungit/pull/878)
+
+ |
+
|
+ 7
+6
+ |
+
+
+
+ - 1.1.8:
+
+ |
+
| + |
+ @@ -11,7 +10,7 @@ $a="<table><tr><td>- 1.1.9: Fix around ubuntu's inability to cache promises. [#8
+ |
+
|
+ 11
+10
+ |
+
+
+
+ - 1.1.7:
+
+ |
+
|
+ 12
+11
+ |
+
+
+
+ - Fix diff flickering issue and optimization [#865](https://github.com/FredrikNoren/ungit/pull/865)
+
+ |
+
|
+ 13
+12
+ |
+
+
+
+ - Fix credential dialog issue [#864](https://github.com/FredrikNoren/ungit/pull/864)
+
+ |
+
|
+ 14
+
+ |
+
+
+ -
+ - Fix HEAD branch order when redraw [#858](https://github.com/FredrikNoren/ungit/issues/858)
+
+ |
+
|
+
+ 13
+ |
+
+
+ +
+ 4 - Fix HEAD branch order when redraw [#858](https://github.com/FredrikNoren/ungit/issues/858)
+
+ |
+
|
+ 15
+14
+ |
+
+
+
+ - 1.1.6: Fix path auto complete [#861](https://github.com/FredrikNoren/ungit/issues/861)
+
+ |
+
|
+ 16
+15
+ |
+
+
+
+ - 1.1.5: Update "Toggle all" button after commit or changing selected files [#859](https://github.com/FredrikNoren/ungit/issues/859)
+
+ |
+
|
+ 17
+16
+ |
+
+
+
+ - 1.1.4: [patch] Promise refactoring
+
+ |
+
|
+ 18
+17
+ |
+
+
+
+
+ + |
+