Skip to content

Commit f144566

Browse files
author
Josh Bruce
committed
Use string replace to get HTML5
1 parent 1694be9 commit f144566

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/integration/marked-spec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ var cmSpec = require('./commonmark.json');
44
describe('CommonMark 0.28', function() {
55
cmSpec.forEach(function(example) {
66
var consoleString = 'should pass example ' + example.example;
7+
var expected = example.html.replace(' />', '>');
8+
var result = example.markdown;
9+
710
// sut.setOptions({xhtml:true});
811
it(consoleString, function() {
912
expect(
10-
sut(example.markdown)
11-
).toBe(example.html);
13+
sut(result)
14+
).toBe(expected);
1215
});
1316
});
1417
});

0 commit comments

Comments
 (0)