# utils/spy

module

<a id="functions">

## Functions

<a id="function-spy">

### `spy() → () => void`

Creates a spy function (ala Sinon.js) that can be used to inspect call to it.

The following are the present features:

* spy.called: property set to `true` if the function has been called at least once.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/spy.ts#L19)

#### Returns

* `() => void`

  The spy function.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
