From 66912a3a542249e6e2c0f19277b68e85e9caef06 Mon Sep 17 00:00:00 2001 From: Jordan Welch Date: Mon, 11 Sep 2023 22:48:23 -0500 Subject: [PATCH] reorganize/rename blocks to match tested functions --- src/__tests__/diff2html-tests.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/__tests__/diff2html-tests.ts b/src/__tests__/diff2html-tests.ts index 41405f8..dbf78ab 100644 --- a/src/__tests__/diff2html-tests.ts +++ b/src/__tests__/diff2html-tests.ts @@ -49,7 +49,7 @@ const jsonExample1: DiffFile[] = [ ]; describe('Diff2Html', () => { - describe('getJsonFromDiff', () => { + describe('parse', () => { it('should parse simple diff to json', () => { const diff = 'diff --git a/sample b/sample\n' + @@ -199,7 +199,9 @@ describe('Diff2Html', () => { ] `); }); + }); + describe('html', () => { it('should generate pretty line by line html from diff', () => { const result = html(diffExample1, { drawFileList: false }); expect(result).toMatchInlineSnapshot(`