Skip to content

Commit 8102d3c

Browse files
authored
Merge pull request #511 from JHWelch/organize-diff2html-tests
reorganize/rename blocks to match tested functions
2 parents 2ffca85 + 66912a3 commit 8102d3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/__tests__/diff2html-tests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const jsonExample1: DiffFile[] = [
4949
];
5050

5151
describe('Diff2Html', () => {
52-
describe('getJsonFromDiff', () => {
52+
describe('parse', () => {
5353
it('should parse simple diff to json', () => {
5454
const diff =
5555
'diff --git a/sample b/sample\n' +
@@ -199,7 +199,9 @@ describe('Diff2Html', () => {
199199
]
200200
`);
201201
});
202+
});
202203

204+
describe('html', () => {
203205
it('should generate pretty line by line html from diff', () => {
204206
const result = html(diffExample1, { drawFileList: false });
205207
expect(result).toMatchInlineSnapshot(`

0 commit comments

Comments
 (0)