MCPcopy Create free account
hub / github.com/FernhillFable/cluster / testDelCommit

Function testDelCommit

test/db.js:150–157  ·  view source on GitHub ↗
(ops, snapshot)

Source from the content-addressed store, hash-verified

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) {

Callers 1

testOpOrDelCommitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected