Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445/** Tests for the wrapper options type: `baseUrl` acceptance in both forms. @module */
import { describe, expect, it,} from '@monochromatic-dev/module-test/ts';
import { makeAsynchronous, } from '../dist/final/neutral/index.mjs';
await describe({ name: 'wrapper options', children: [ it({ name: 'accepts a string baseUrl', fn: async () => { const fn = makeAsynchronous({ fn: function identity(value: number,): number { return value; }, options: { baseUrl: 'file:///fixture.js', }, },); expect(await fn({ args: [3], }),).toBe(3,); }, },),
it({ name: 'accepts a URL baseUrl', fn: async () => { const fn = makeAsynchronous({ fn: function identity(value: number,): number { return value; }, options: { baseUrl: new URL('file:///fixture.js',), }, },); expect(await fn({ args: [4], }),).toBe(4,); }, },), ],},);