# test.build/core/formatters/company.formatter.test.ts

> 21 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-build-core-formatters-company-formatter-test-ts
Source text: https://banes-lab.com/source/testing/test.build/core/formatters/company.formatter.test.ts.txt

Listed in [test.build/core/formatters](https://banes-lab.com/api/source/testing/test.build/core/formatters.md), after [test.build/core/formatters/catalog.formatter.test.ts](https://banes-lab.com/source/testing/test.build/core/formatters/catalog.formatter.test.ts.md) and before [test.build/core/formatters/diagram.formatter.test.ts](https://banes-lab.com/source/testing/test.build/core/formatters/diagram.formatter.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { renderContact } from "@banes-lab/build-scripts/core/formatters/company.formatter.ts";

describe("renderContact", () => {
    it("links each named address of the contact record", () => {
        const contact = renderContact(
            {
                address: "A",
                company: "C",
                country: "BE",
                email: "e@x.test",
                founded: "2025",
                links: { "Code repository": "https://c.test" },
                number: "1",
                owner: "O",
                reply: "R.",
            },
            "https://x.test",
        );
        expect(contact).toContain("[Code repository](https://c.test)");
    });
});
```
