This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/signal-polyfill/tests/Signal/subtle/currentComputed.test.ts
T

13 lines
366 B
TypeScript

import {describe, expect, it} from 'vitest';
import {Signal} from '../../../src/wrapper.js';
describe('currentComputed', () => {
it('works', () => {
expect(Signal.subtle.currentComputed()).toBe(undefined);
let context;
let c = new Signal.Computed(() => (context = Signal.subtle.currentComputed()));
c.get();
expect(c).toBe(context);
});
});