({
collection = [] as any,
previous = [] as any,
additions = [] as any,
moves = [] as any,
removals = [] as any,
identityChanges = [] as any,
})
| 70 | } |
| 71 | |
| 72 | export function iterableChangesAsString({ |
| 73 | collection = [] as any, |
| 74 | previous = [] as any, |
| 75 | additions = [] as any, |
| 76 | moves = [] as any, |
| 77 | removals = [] as any, |
| 78 | identityChanges = [] as any, |
| 79 | }): string { |
| 80 | return ( |
| 81 | 'collection: ' + |
| 82 | collection.join(', ') + |
| 83 | '\n' + |
| 84 | 'previous: ' + |
| 85 | previous.join(', ') + |
| 86 | '\n' + |
| 87 | 'additions: ' + |
| 88 | additions.join(', ') + |
| 89 | '\n' + |
| 90 | 'moves: ' + |
| 91 | moves.join(', ') + |
| 92 | '\n' + |
| 93 | 'removals: ' + |
| 94 | removals.join(', ') + |
| 95 | '\n' + |
| 96 | 'identityChanges: ' + |
| 97 | identityChanges.join(', ') + |
| 98 | '\n' |
| 99 | ); |
| 100 | } |
| 101 | |
| 102 | function kvcrAsString(kvcr: KeyValueChangeRecord<string, any>) { |
| 103 | return Object.is(kvcr.previousValue, kvcr.currentValue) |
no test coverage detected
searching dependent graphs…