Fix test. Revert test line.

This commit is contained in:
haad 2016-03-03 15:08:06 +01:00
parent 104db41421
commit eb71603ec7
2 changed files with 1 additions and 4 deletions

View File

@ -146,9 +146,6 @@ class OrbitDB {
}
_deleteChannel(channel, password) {
if(!this._ipfs)
throw new Error("IPFS daemon not running");
this._store[channel].clear();
return true;
}

View File

@ -198,7 +198,7 @@ describe('Orbit Client', function() {
const iter = db.iterator();
const first = iter.next().value;
const second = iter.next().value;
assert.equal(first.payload.key, items2[items.length - 1]);
assert.equal(first.payload.key, items2[items2.length - 1]);
assert.equal(second, null);
assert.equal(first.payload.value, 'hello4');
done();