## createTests() function

Produce an 'application/json-patch+json'-type list of tests, to verify that existing values in an object are identical to the those captured at some checkpoint (whenever this function is called).

This does not alter `input` or `output` unless they have a property getter with side-effects (which is not a good idea anyway).

Returns list of test operations.

**Signature:**

```typescript
export declare function createTests(input: any, patch: Operation[]): TestOperation[];
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| input | any | The input value. |
| patch | [Operation](/content/docs/sdk/core.operation) | The list of patch operations. |

**Returns:**

[TestOperation](/content/docs/sdk/core.testoperation)

A list of test operations corresponding to the current values.

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