# test.coordination/core/strings/json.strings.test.ts

> 9 lines of code and 0 definitions.

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

Listed in [test.coordination/core/strings](https://banes-lab.com/api/source/testing/test.coordination/core/strings.md), after [test.coordination/core/strings/invocation.strings.test.ts](https://banes-lab.com/source/testing/test.coordination/core/strings/invocation.strings.test.ts.md) and before [test.coordination/core/strings/member.strings.test.ts](https://banes-lab.com/source/testing/test.coordination/core/strings/member.strings.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, it } from "vitest";
import { unreadableJson, unsatisfiedShape } from "coordination-surface/tools/core/strings/json.strings.ts";
import assert from "node:assert/strict";

describe("the json reader messages", () => {
    it("name the origin and what failed", () => {
        assert.equal(unreadableJson("a.json", "bad token"), "a.json is not readable JSON: bad token");
        assert.equal(unsatisfiedShape("a.json", "an object"), "a.json does not satisfy an object");
    });
});
```
