Create the NAP-LINK mock. Validates the URL like a conformant shell and records every decision in mock.state().records.
mock.state().records
Scheme allowlist, blocked hosts, and shared mock options.
The link mock service.
const link = createMockLinkService();link.handleMessage('w1', { type: 'link.open', id: 'l1', url: 'https://example.org/' }, send);// → { type: 'link.open.result', id: 'l1', status: 'opened' } Copy
const link = createMockLinkService();link.handleMessage('w1', { type: 'link.open', id: 'l1', url: 'https://example.org/' }, send);// → { type: 'link.open.result', id: 'l1', status: 'opened' }
Create the NAP-LINK mock. Validates the URL like a conformant shell and records every decision in
mock.state().records.