(db, cb)
| 244 | }); |
| 245 | |
| 246 | function commitSnapshotWithMetadata(db, cb) { |
| 247 | var data = {x: 5, y: 6}; |
| 248 | var metadata = {test: 3}; |
| 249 | var op = {v: 0, create: {type: 'http://sharejs.org/types/JSONv0', data: data}}; |
| 250 | var snapshot = {v: 1, type: 'http://sharejs.org/types/JSONv0', data: data, m: metadata}; |
| 251 | db.commit('testcollection', 'test', op, snapshot, null, cb); |
| 252 | } |
| 253 | |
| 254 | describe('getSnapshot', function() { |
| 255 | it('getSnapshot returns v0 snapshot', function(done) { |
no outgoing calls
no test coverage detected
searching dependent graphs…