fixed another test
This commit is contained in:
		
							parent
							
								
									81c601c65f
								
							
						
					
					
						commit
						dae0f71cbc
					
				@ -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]
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user