> For the complete documentation index, see [llms.txt](https://kava.bevry.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kava.bevry.me/troubleshooting.md).

# Troubleshooting

### An invalid amount of arguments were specified for a Suite

Suite initialisers accept only one, two, or three arguments, as shown by the following snippets:

{% tabs %}
{% tab title="one-arguments.js" %}

```javascript
// 1 arguments
suite('name', function (suite) {
  suite('an immediate suite', function (suite, test) {
    test('an immediate test', function () {})
  })
})
```

{% endtab %}

{% tab title="two-arguments.js" %}

```javascript
// 2 arguments
suite('name', function (suite, test) {
  test('an immediate test', function () {})
})
```

{% endtab %}

{% tab title="three-arguments.js" %}

```javascript
// 3 arguments
suite('name', function (suite, test, done) {
  setTimeout(function () {
    test('a delayed test', function () {})
    done()
  }, 1000)
})
```

{% endtab %}
{% endtabs %}

This is to ensure a suite is not confused with a test.

Resolving this error involves checking your logic to ensure that you actually want to use a Suite:

* if you do want to use a suite, then update the specified arguments to a combination mentioned above
* if you don't want to use a suite, then you may want to use a test instead

### An invalid amount of arguments were specified for a Test

Tests only accept zero or one arguments, as shown by the following snippets:

{% tabs %}
{% tab title="zero-arguments.js" %}

```javascript
// 0 arguments
test('an immediate test', function () {
  // completes right away
})

```

{% endtab %}

{% tab title="one-arguments.js" %}

```javascript
// 1 arguments
test('an asynchronous test', function (done) {
  setTimeout(function () {
    done()
  }, 1000)
})

```

{% endtab %}
{% endtabs %}

This is to ensure a test is not confused with a suite.

Resolving this error involves checking your logic to ensure that you actually want to use a Suite:

* if you do want to use a test, then update the specified arguments to a combination mentioned above
* if you don't want to use a test, then you may want to use a suite instead


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://kava.bevry.me/troubleshooting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
