(fields, snapshot, expected)
| 6 | describe('projection utility methods', function() { |
| 7 | describe('projectSnapshot', function() { |
| 8 | function test(fields, snapshot, expected) { |
| 9 | projections.projectSnapshot(fields, snapshot); |
| 10 | expect(snapshot).eql(expected); |
| 11 | } |
| 12 | |
| 13 | it('throws on snapshots with the wrong type', function() { |
| 14 | expect(function() { |
no outgoing calls
no test coverage detected
searching dependent graphs…