# test.scripts/configuration/strings/route.strings.test.ts

> 15 lines of code and 0 definitions.

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

Listed in [test.scripts/configuration/strings](https://banes-lab.com/api/source/testing/test.scripts/configuration/strings.md), after [test.scripts/configuration/strings/closure.strings.test.ts](https://banes-lab.com/source/testing/test.scripts/configuration/strings/closure.strings.test.ts.md) and before [test.scripts/configuration/strings/snapshot.strings.test.ts](https://banes-lab.com/source/testing/test.scripts/configuration/strings/snapshot.strings.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import {
    listeningAfter,
    neverListened,
    portHeld,
    portStillHeld,
} from "@project/scripts/configuration/strings/route.strings.ts";

describe("the route capture's lines", () => {
    it("name the port, the holders and the wait they report", () => {
        expect(neverListened(9)).toContain("never listened on port 9");
        expect(listeningAfter(120)).toContain("after 120 ms");
        expect(portStillHeld(9)).toContain("port 9 is still held");
        expect(portHeld(9, ["1", "2"])).toContain("held by pid 1, 2");
    });
});
```
