Merge pull request #511 from JHWelch/organize-diff2html-tests
reorganize/rename blocks to match tested functions
This commit is contained in:
commit
8102d3cf61
1 changed files with 3 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ const jsonExample1: DiffFile[] = [
|
||||||
];
|
];
|
||||||
|
|
||||||
describe('Diff2Html', () => {
|
describe('Diff2Html', () => {
|
||||||
describe('getJsonFromDiff', () => {
|
describe('parse', () => {
|
||||||
it('should parse simple diff to json', () => {
|
it('should parse simple diff to json', () => {
|
||||||
const diff =
|
const diff =
|
||||||
'diff --git a/sample b/sample\n' +
|
'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', () => {
|
it('should generate pretty line by line html from diff', () => {
|
||||||
const result = html(diffExample1, { drawFileList: false });
|
const result = html(diffExample1, { drawFileList: false });
|
||||||
expect(result).toMatchInlineSnapshot(`
|
expect(result).toMatchInlineSnapshot(`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue