# tests/core/readers/token.reader.test.ts

> 13 lines of code and 0 definitions.

Tree: Coordination tree
Language: typescript
Canonical: https://banes-lab.com/anatomy/coordination#file-coordination-tests-core-readers-token-reader-test-ts
Source text: https://banes-lab.com/assets/sources/source.18e1c6b6d724df0ced7b774156bb7d8adea3c00c47ee0036ca7c4492a75d1060.generated.txt

## Source

```typescript
import { describe, it } from "node:test";
import assert from "node:assert/strict";
import { inlinesOf } from "../../../tools/core/readers/token.reader.ts";

describe("inlinesOf", () => {
    it("reads code spans, link targets and scoped import paths with their offsets", () => {
        const line = "use `a.ts` and [b](docs/b.md) from @scope/pkg, not a@b/c or `` or `open";
        assert.deepEqual(inlinesOf(line, 100, 7), [
            { end: 109, kind: "inline-code", line: 7, start: 105, value: "a.ts" },
            { end: 128, kind: "link-target", line: 7, start: 119, value: "docs/b.md" },
            { end: 146, kind: "import-path", line: 7, start: 136, value: "scope/pkg," },
        ]);
    });
});
```
