There was an error while loading. Please reload this page.
2 parents 2ffca85 + 66912a3 commit 8102d3cCopy full SHA for 8102d3c
src/__tests__/diff2html-tests.ts
@@ -49,7 +49,7 @@ const jsonExample1: DiffFile[] = [
49
];
50
51
describe('Diff2Html', () => {
52
- describe('getJsonFromDiff', () => {
+ describe('parse', () => {
53
it('should parse simple diff to json', () => {
54
const diff =
55
'diff --git a/sample b/sample\n' +
@@ -199,7 +199,9 @@ describe('Diff2Html', () => {
199
]
200
`);
201
});
202
+ });
203
204
+ describe('html', () => {
205
it('should generate pretty line by line html from diff', () => {
206
const result = html(diffExample1, { drawFileList: false });
207
expect(result).toMatchInlineSnapshot(`
0 commit comments