(testCase, converter, type)
| 64 | } |
| 65 | |
| 66 | function assertion (testCase, converter, type) { |
| 67 | return function () { |
| 68 | //var conv = (type === 'makeMd') ? converter.makeMd : converter.makeHtml; |
| 69 | |
| 70 | testCase.actual = (type === 'makeMd') ? converter.makeMd(testCase.input, document) : converter.makeHtml(testCase.input); |
| 71 | testCase = normalize(testCase); |
| 72 | |
| 73 | // Compare |
| 74 | testCase.actual.should.equal(testCase.expected); |
| 75 | }; |
| 76 | } |
| 77 | |
| 78 | //Normalize input/output |
| 79 | function normalize (testCase) { |
no test coverage detected
searching dependent graphs…