mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
first version after migration to mocha
This commit is contained in:
parent
876d7db39a
commit
5becf0bd15
13 changed files with 1222 additions and 1613 deletions
|
@ -63,6 +63,7 @@ describe("attribution line mutations",function(){
|
|||
done();
|
||||
})
|
||||
})
|
||||
|
||||
function runMutateAttributionTest(testId, attribs, cs, alines, outCorrect) {
|
||||
var p = poolOrArray(attribs);
|
||||
var alines2 = Array.prototype.slice.call(alines);
|
||||
|
@ -75,6 +76,7 @@ function runMutateAttributionTest(testId, attribs, cs, alines, outCorrect) {
|
|||
function removeQuestionMarks(a) {
|
||||
return a.replace(/\?/g, '');
|
||||
}
|
||||
// applyToAttribution
|
||||
var inMerged = Changeset.joinAttributionLines(alines.map(removeQuestionMarks));
|
||||
var correctMerged = Changeset.joinAttributionLines(outCorrect.map(removeQuestionMarks));
|
||||
var mergedResult = Changeset.applyToAttribution(cs, inMerged, p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue