| 133 | const samples = nodes.map(node => { |
| 134 | const item = node.properties, sample = item.observation; |
| 135 | const value = side => describeValue(sample[side]) + (sample[side].reason ? ' — ' + sample[side].reason : ''); |
| 136 | const location = side => item[side + '_location'] ? `${item[side + '_location'].start_line}–${item[side + '_location'].end_line}` : 'no recorded range'; |
| 137 | return viewSnapshot ? `${viewSnapshot.view} @ ${viewSnapshot.state} · ${item.path}\n${sample.subject}\nSnapshot (${location('after')}): ${value('after')}` : `${item.change} · ${item.path}\n${sample.subject}\nBefore (${location('before')}): ${value('before')}\nAfter (${location('after')}): ${value('after')}\n${changeText(node)}`; |
| 138 | }); |
no test coverage detected