MCPcopy Index your code
hub / github.com/share/sharedb / test

Function test

test/projections.js:8–11  ·  view source on GitHub ↗
(fields, snapshot, expected)

Source from the content-addressed store, hash-verified

6describe('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() {

Callers 2

commitConcurrentFunction · 0.70
projections.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…