(ops, snapshot)
| 148 | } |
| 149 | |
| 150 | function testDelCommit(ops, snapshot) { |
| 151 | expect(snapshot.v).equal(2); |
| 152 | expect(ops.length).equal(2); |
| 153 | expect(snapshot.data).equal(undefined); |
| 154 | expect(snapshot.type).equal(null); |
| 155 | expect(ops[0].create).ok; |
| 156 | expect(ops[1].del).equal(true); |
| 157 | } |
| 158 | |
| 159 | function testOpOrDelCommit(ops, snapshot) { |
| 160 | if (ops[1].op) { |