Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ygormutti committed Sep 10, 2018
1 parent 77699d8 commit 3ae6c92
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions diffless/languages/json/tests/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ import { announceHtml, fixtureDocument } from '../../../tests/test-util';
import { jsonDiff, jsonLexicalDiff } from '../index';

describe('JSON support', () => {
const mapReorderleft = fixtureDocument('single_map_reorder/before.json');
const mapReorderLeft = fixtureDocument('single_map_reorder/before.json');
const mapReorderRight = fixtureDocument('single_map_reorder/after.json');

describe('jsonLexicalDiff', () => {
it('should match snapshot', () => {
const diff = jsonLexicalDiff(mapReorderleft, mapReorderRight);
const diff = jsonLexicalDiff(mapReorderLeft, mapReorderRight);

expect(diff.edits).toMatchSnapshot();
announceHtml(mapReorderleft, mapReorderRight, diff.edits, 'json_lexical_1');
announceHtml(mapReorderLeft, mapReorderRight, diff.edits, 'json_lexical_1');
});
});

describe('jsonDiff', () => {
it('should match snapshot', () => {
const diff = jsonDiff(mapReorderleft, mapReorderRight);
const diff = jsonDiff(mapReorderLeft, mapReorderRight);

expect(diff.edits).toMatchSnapshot();
announceHtml(mapReorderleft, mapReorderRight, diff.edits, 'json_1');
announceHtml(mapReorderLeft, mapReorderRight, diff.edits, 'json_1');
});

it('should match snapshot', () => {
Expand Down

0 comments on commit 3ae6c92

Please sign in to comment.