mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	namespace: Require rewired variables to be exported.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							db2723036f
						
					
				
				
					commit
					ee52618e1b
				
			@@ -356,8 +356,8 @@ exports.with_overrides = function (test_function) {
 | 
			
		||||
            `We cannot override a function for ${typeof obj} objects`,
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
        // https://github.com/rosswarren/babel-plugin-rewire-ts/issues/15
 | 
			
		||||
        const old_value = prop in obj ? obj[prop] : obj.__GetDependency__(prop);
 | 
			
		||||
        assert.ok(Object.hasOwn(obj, prop));
 | 
			
		||||
        const old_value = obj[prop];
 | 
			
		||||
        let new_value = value;
 | 
			
		||||
 | 
			
		||||
        if (typeof value === "function") {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user