Skip to content

Commit a73b771

Browse files
Add further assertion to test, as suggested by Mingun (#491)
1 parent bf45b03 commit a73b771

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/diff/line.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,17 @@ describe('diff/line', function() {
171171
30
172172
]
173173
}`);
174+
expect(convertChangesToXML(diffResult)).to.equal([
175+
'<del>[\n</del>',
176+
'<ins>{\n',
177+
' "data": [\n</ins>',
178+
' 10,\n',
179+
'<del> 20,\n</del>',
180+
'<ins> 42,\n</ins>',
181+
' 30\n',
182+
' ]\n',
183+
'<ins>}</ins>'
184+
].join('').replace(/"/g, '&quot;'));
174185
});
175186

176187
it('should not consider adding whitespace to an empty line an insertion', function() {

0 commit comments

Comments
 (0)