mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:12:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("basic functionality", () => {
 | |
|     function foo(a) {
 | |
|         return a;
 | |
|     }
 | |
| 
 | |
|     var x = undefined;
 | |
|     expect(x).toBeUndefined();
 | |
|     expect(foo(x)).toBeUndefined();
 | |
| 
 | |
|     var o = {};
 | |
|     o.x = x;
 | |
|     expect(o.x).toBeUndefined();
 | |
|     expect(o.x).toBe(x);
 | |
| });
 | 
