fixed another test

This commit is contained in:
Kevin Jahns 2015-07-26 00:01:53 +00:00
parent 81c601c65f
commit dae0f71cbc

View File

@ -20,12 +20,11 @@ describe('Memory', function () {
expect(ds.toDeleteSet()).toBeTruthy({'u1': [10, 2]})
})
it('Creates operations', function () {
ds.add({id: ['5', 3], len: 2})
var dels = ds.getDeletions({5: [[4, 1]]})
expect(dels.length === 1).toBeTruthy()
expect(dels[0]).toEqual({
struct: 'Delete',
target: ['5', 3]
target: ['5', 4]
})
})
})