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]}) expect(ds.toDeleteSet()).toBeTruthy({'u1': [10, 2]})
}) })
it('Creates operations', function () { it('Creates operations', function () {
ds.add({id: ['5', 3], len: 2})
var dels = ds.getDeletions({5: [[4, 1]]}) var dels = ds.getDeletions({5: [[4, 1]]})
expect(dels.length === 1).toBeTruthy() expect(dels.length === 1).toBeTruthy()
expect(dels[0]).toEqual({ expect(dels[0]).toEqual({
struct: 'Delete', struct: 'Delete',
target: ['5', 3] target: ['5', 4]
}) })
}) })
}) })