← Public packages
@kody/mailroom
Offline-first PWA for your Kody mailbox: sent and received threads, copy-prompt for agents, no send.
src/deep-link.node.test.ts
14 lines · 374 B · TypeScriptimport assert from 'node:assert/strict'
import test from 'node:test'
import { parseDeepLink } from './deep-link.ts'
test('parses thread and mail deep links', () => {
assert.deepEqual(parseDeepLink({ hash: '#thread/abc' }), {
threadId: 'abc',
messageId: null,
})
assert.deepEqual(parseDeepLink({ search: '?mail=xyz' }), {
threadId: null,
messageId: 'xyz',
})
})