mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	
							
								
								
									
										7
									
								
								web_src/js/webcomponents/polyfill.test.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								web_src/js/webcomponents/polyfill.test.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
import {weakRefClass} from './polyfills.ts';
 | 
			
		||||
 | 
			
		||||
test('polyfillWeakRef', () => {
 | 
			
		||||
  const WeakRef = weakRefClass();
 | 
			
		||||
  const r = new WeakRef(123);
 | 
			
		||||
  expect(r.deref()).toEqual(123);
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user