MCPcopy
hub / github.com/showdownjs/showdown / assertion

Function assertion

test/bootstrap.js:66–76  ·  view source on GitHub ↗
(testCase, converter, type)

Source from the content-addressed store, hash-verified

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) {

Callers 6

testsuite.ghost.jsFile · 0.85

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…