Commit c184165
committed
fix(test): add textBetween/nodesBetween to remap-length tr.doc mock
Same root cause as the other three files — the word-diff trim in
executor.ts calls tr.doc.textBetween and charOffsetToDocPos (which
uses tr.doc.nodesBetween). The remap-length mock needs:
- textBetween returning a range-sized unique string (no common
prefix/suffix with any replacement) so the trim is a no-op
- nodesBetween simulating a single text node so charOffsetToDocPos
maps offsets correctly1 parent a346499 commit c184165
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
0 commit comments