Skip to content

Commit

Permalink
Reproduce issue microsoft#29
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Aug 21, 2018
1 parent 71ac522 commit 54aef0d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/test/formatter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,45 @@ suite('JSON Formatter', () => {

format(content, expected);
});

test('bug 29 ', () => {
var content = [
'<div>',
' <pre>',
' stuff',
' </pre>',
'</div>'
].join('\n');

var expected = [
'<div>',
' <pre>',
' stuff',
' </pre>',
'</div>'
].join('\n');

format(content, expected);
});

test('bug 29', () => {
var content = [
'<div>',
'| <pre>',
' stuff',
' </pre>|',
'</div>'
].join('\n');

var expected = [
'<div>',
' <pre>',
' stuff',
' </pre>',
'</div>'
].join('\n');

format(content, expected);
});

});

0 comments on commit 54aef0d

Please sign in to comment.