mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-22 09:28:45 +03:00
8 lines
180 B
TypeScript
8 lines
180 B
TypeScript
import {weakRefClass} from './polyfills.ts';
|
|
|
|
test('polyfillWeakRef', () => {
|
|
const WeakRef = weakRefClass();
|
|
const r = new WeakRef(123);
|
|
expect(r.deref()).toEqual(123);
|
|
});
|