Permalink
Browse files

test new scuttlebutt protocol

  • Loading branch information...
dominictarr committed Nov 29, 2012
1 parent c0f8504 commit 271baf3d0edda12ba1b86384e51f4072938ed1d4
Showing with 4 additions and 9 deletions.
  1. +4 −5 test/helpers/index.js
  2. +0 −4 test/persist.js
View
@@ -9,11 +9,10 @@ exports.validateUpdates = function (t) {
t = t || assert
return es.mapSync(function (update) {
if(Array.isArray(update)) {
- assert.equal(update.length, 4, 'length of update')
- t.equal(typeof update[0], 'string')
- t.equal(typeof update[1], 'object')
- t.equal(typeof update[2], 'number')
- t.equal(typeof update[3], 'string')
+// assert.equal(update.length, 3, 'length of update')
+ t.equal(typeof update[0], 'object')
+ t.equal(typeof update[1], 'number')
+ t.equal(typeof update[2], 'string')
}
return update
})
View
@@ -26,8 +26,6 @@ test('simple', function (t) {
array.forEach(function(v, i) {
if(!i)
assert.equal(v, a.id)
- else
- assert.equal(v.length, 4)
})
var sync = false
var b = new crdt.Doc()
@@ -66,8 +64,6 @@ test('JSON', function (t) {
v = JSON.parse(v)
if(!i)
assert.equal(v, a.id)
- else
- assert.equal(v.length, 4)
})
var sync = false
var b = new crdt.Doc()

0 comments on commit 271baf3

Please sign in to comment.