# test.govlab/quality/core/predicates/constants.predicate.test.ts

> 8 lines of code and 0 definitions.

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

Listed in [test.govlab/quality/core/predicates](https://banes-lab.com/api/source/testing/test.govlab/quality/core/predicates.md), after [test.govlab/quality/core/predicates/config.predicate.test.ts](https://banes-lab.com/source/testing/test.govlab/quality/core/predicates/config.predicate.test.ts.md) and before [test.govlab/quality/core/predicates/construct.predicate.test.ts](https://banes-lab.com/source/testing/test.govlab/quality/core/predicates/construct.predicate.test.ts.md).

## Contained in

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

## Source

```typescript
import { expect, test } from "vitest";
import { isUpperSnake } from "@govlab/quality/core/predicates/constants.predicate.ts";

test("isUpperSnake holds for an upper-case snake name with at least one letter", () => {
    expect(isUpperSnake("MAX_LINES")).toBe(true);
    expect(isUpperSnake("A1")).toBe(true);
    expect(isUpperSnake("maxLines")).toBe(false);
    expect(isUpperSnake("_1")).toBe(false);
});
```
