Skip to content

Commit

Permalink
Merge pull request #511 from JHWelch/organize-diff2html-tests
Browse files Browse the repository at this point in the history
reorganize/rename blocks to match tested functions
  • Loading branch information
rtfpessoa authored Sep 19, 2023
2 parents 2ffca85 + 66912a3 commit 8102d3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/__tests__/diff2html-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' +
Expand Down Expand Up @@ -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(`
Expand Down

0 comments on commit 8102d3c

Please sign in to comment.