> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.test.Assert

- Component: `appmixer.utils.test.Assert`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.utils.test 1.1.4](https://connectors.appmixer.com/connector/appmixer.utils.test/1.1.4.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.test/1.1.4/component/appmixer.utils.test.Assert>

Provides a set of assertion functions for verifying components outputs.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Asserts (`expression`) | expression | - |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.test.Assert",
  "author": "Martin Krčmář <martin@client.io>",
  "description": "Provides a set of assertion functions for verifying components outputs.",
  "inPorts": [
    {
      "name": "in",
      "inspector": {
        "inputs": {
          "expression": {
            "type": "expression",
            "label": "Asserts",
            "index": 1,
            "levels": [
              "AND"
            ],
            "fields": {
              "field": {
                "type": "text",
                "label": "Input field",
                "tooltip": "Field with value you want to test.",
                "index": 1
              },
              "assertion": {
                "type": "select",
                "variables": false,
                "label": "Assertion type",
                "index": 2,
                "options": [
                  {
                    "value": "equal",
                    "content": "Equal"
                  },
                  {
                    "value": "notEmpty",
                    "content": "Not empty"
                  },
                  {
                    "value": "regex",
                    "content": "Regular expression"
                  }
                ]
              },
              "expected": {
                "type": "text",
                "label": "Expected value",
                "tooltip": "Expected value.",
                "when": {
                  "eq": {
                    "./assertion": "equal"
                  }
                },
                "index": 3
              },
              "regex": {
                "type": "text",
                "label": "Expected value",
                "tooltip": "Expected value.",
                "when": {
                  "eq": {
                    "./assertion": "regex"
                  }
                },
                "index": 3
              },
              "type": {
                "type": "select",
                "label": "Expected type",
                "tooltip": "You can check if the value is of certain type.",
                "variables": false,
                "options": [
                  {
                    "clearItem": true,
                    "content": "-- Clear selection --"
                  },
                  {
                    "value": "number",
                    "content": "number"
                  },
                  {
                    "value": "string",
                    "content": "string"
                  },
                  {
                    "value": "object",
                    "content": "object"
                  },
                  {
                    "value": "array",
                    "content": "array"
                  }
                ],
                "index": 4
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    "out"
  ],
  "icon": "(data URI omitted)"
}
```
