mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			165 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			165 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("basic update expression", () => {
 | |
|     const o = {};
 | |
|     o.f = 1;
 | |
| 
 | |
|     expect(o.f++).toBe(1);
 | |
|     expect(++o.f).toBe(3);
 | |
|     expect(++o.missing).toBeNaN();
 | |
| });
 | 
