# test.govlab/stats/core/predicates/record.predicate.test.ts

> 10 lines of code and 0 definitions.

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

Listed in [test.govlab/stats/core/predicates](https://banes-lab.com/api/source/testing/test.govlab/stats/core/predicates.md), before [test.govlab/stats/core/predicates/rule.predicate.test.ts](https://banes-lab.com/source/testing/test.govlab/stats/core/predicates/rule.predicate.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { isRecord } from "@govlab/stats/core/predicates/record.predicate.ts";

describe("isRecord", () => {
    it("accepts a plain object and refuses null, an array and a primitive", () => {
        expect(isRecord({})).toBe(true);
        expect(isRecord([])).toBe(false);
        expect(isRecord(null)).toBe(false);
        expect(isRecord("text")).toBe(false);
    });
});
```
