# test.coordination/core/predicates/placement.predicate.test.ts

> 11 lines of code and 0 definitions.

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

Listed in [test.coordination/core/predicates](https://banes-lab.com/api/source/testing/test.coordination/core/predicates.md), after [test.coordination/core/predicates/marker.predicate.test.ts](https://banes-lab.com/source/testing/test.coordination/core/predicates/marker.predicate.test.ts.md) and before [test.coordination/core/predicates/schema.predicate.test.ts](https://banes-lab.com/source/testing/test.coordination/core/predicates/schema.predicate.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, it } from "vitest";
import assert from "node:assert/strict";
import { isImmutable } from "coordination-surface/tools/core/predicates/placement.predicate.ts";
import { surfacePath } from "coordination-surface/config/surface.config.ts";

describe("isImmutable", () => {
    it("holds a path whose declared lifetime is frozen and never removed, and releases any other", () => {
        assert.equal(isImmutable(`${surfacePath("archive")}/old.md`), true);
        assert.equal(isImmutable(surfacePath("board")), false);
        assert.equal(isImmutable("undeclared/path.md"), false);
    });
});
```
