# test.coordination/core/resolvers/marker.resolver.test.ts

> 16 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-coordination-core-resolvers-marker-resolver-test-ts
Source text: https://banes-lab.com/source/testing/test.coordination/core/resolvers/marker.resolver.test.ts.txt

Listed in [test.coordination/core/resolvers](https://banes-lab.com/api/source/testing/test.coordination/core/resolvers.md), after [test.coordination/core/resolvers/gate.resolver.test.ts](https://banes-lab.com/source/testing/test.coordination/core/resolvers/gate.resolver.test.ts.md) and before [test.coordination/core/resolvers/reference.resolver.test.ts](https://banes-lab.com/source/testing/test.coordination/core/resolvers/reference.resolver.test.ts.md).

## Contained in

- [test.coordination/core/resolvers](https://banes-lab.com/anatomy/testing/folder-testing-test-coordination-core-resolvers.md)

## Source

```typescript
import { classBoundLeads, declaredLeads } from "coordination-surface/tools/core/resolvers/marker.resolver.ts";
import { describe, it } from "vitest";
import assert from "node:assert/strict";

const ACCUMULATOR = [
    "Entries open with `POPULATION:` and `BOUNDARY:`, which presuppose a CLASS.",
    "A note may carry `NOTE:` or `lower:` too.",
    "### lost-update",
    "`LATER:` inside an entry is not declared.",
].join("\n");

describe("declaredLeads and classBoundLeads", () => {
    it("read the uppercase leads the preamble names, and the ones it marks as presupposing a class", () => {
        assert.deepEqual(declaredLeads(ACCUMULATOR), ["POPULATION:", "BOUNDARY:", "NOTE:"]);
        assert.deepEqual(classBoundLeads(ACCUMULATOR), ["POPULATION:", "BOUNDARY:"]);
        assert.deepEqual(declaredLeads("### only entries\n`A:`"), []);
    });
});
```
