# test.web/core/predicates/link.predicate.test.ts

> 9 lines of code and 0 definitions.

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

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

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { isGenericLabel } from "@banes-lab/web/core/predicates/link.predicate.ts";

describe("isGenericLabel", () => {
    it("recognizes link text that names nothing out of context, whatever its case and spacing", () => {
        expect(isGenericLabel("Start")).toBe(true);
        expect(isGenericLabel("  Read   more ")).toBe(true);
        expect(isGenericLabel("Start the methodology")).toBe(false);
    });
});
```
