# test.build/configuration/strings/payload.strings.test.ts

> 26 lines of code and 0 definitions.

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

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

## Contained in

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

## Source

```typescript
import {
    BODILESS_ALTERNATE,
    EMPTY_PAYLOAD,
    MALFORMED_PAYLOAD,
    MISSING_PAGE_ERROR,
    inlineTag,
    unanchoredAlternate,
    untitledAlternate,
    wrongPayloadId,
    wrongPayloadTab,
} from "@banes-lab/build-scripts/configuration/strings/payload.strings.ts";
import { describe, expect, it } from "vitest";

describe("the payload findings", () => {
    it("name the tag, the id, the tab, the title or the address each finding is about", () => {
        expect(
            [MISSING_PAGE_ERROR, EMPTY_PAYLOAD, MALFORMED_PAYLOAD, BODILESS_ALTERNATE].every((text) =>
                text.endsWith("."),
            ),
        ).toBe(true);
        expect(inlineTag("em")).toContain("inline <em> tag");
        expect(wrongPayloadId("home", "terms")).toBe("The payload id is home, expected terms.");
        expect(wrongPayloadTab("guide")).toBe("The payload tab is not guide.");
        expect(untitledAlternate("Terms")).toContain('page title "Terms"');
        expect(unanchoredAlternate("https://x.test/terms")).toContain("canonical address https://x.test/terms");
    });
});
```
