## test_2() function
The "test" operation tests that a value at the target location is equal to a specified value. The operation object MUST contain a "value" member that conveys the value to be compared to the target location's value. The target location MUST be equal to the "value" value for the operation to be considered successful.

**Signature:**

```typescript
export declare function test(object: any, operation: TestOperation, _options?: PatchOptions): TestError | null;
```

## Parameters  
| Parameter | Type | Description |
| --- | --- | --- |
| object | any | The object being patched. |
| operation | [TestOperation](/content/docs/sdk/core.testoperation) | The add operation to perform on the object. |
| _options | [PatchOptions](/content/docs/sdk/core.patchoptions) | _(Optional)_ Optional params. |

**Returns:**
[TestError](/content/docs/sdk/core.testerror) | null

null on success, or error if one occurred.

- [test_2() function](/content/docs/sdk/core.test_2#test_2-function/index.html)
- [Parameters](/content/docs/sdk/core.test_2#parameters/index.html)
