Merge oplog to store

This commit is contained in:
haad
2016-05-06 13:22:41 +02:00
parent 3ccab7b17d
commit c4e245d3d1
9 changed files with 98 additions and 39 deletions

View File

@@ -70,7 +70,7 @@ describe('CounterStore', function() {
describe('counters', function() {
it('increases a counter value', (done) => {
client1.counter('counter test', false).then((counter) => {
client1.counter('counter test', { subscribe: false, cacheFile: './orbit-db-cache.json' }).then((counter) => {
Promise.map([13, 1], (f) => counter.inc(f), { concurrency: 1 }).then(() => {
assert.equal(counter.value(), 14);
done();
@@ -87,7 +87,7 @@ describe('CounterStore', function() {
});
it('creates a new counter from cached data', function(done) {
client1.counter('counter test', false).then((counter) => {
client1.counter('counter test', { subscribe: false, cacheFile: './orbit-db-cache.json' }).then((counter) => {
assert.equal(counter.value(), 14);
done();
}).catch((e) => {