From 9fa5066ad1386868cf97c227eba4a331614b7fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20P=C3=A1pai?= Date: Sun, 31 Jan 2021 16:07:25 +0100 Subject: [PATCH] Add missing highlights in documentation (#2025) * Update broken code highlight * fix groovy highlight Co-authored-by: attilapapai --- doc/matchers/ktor.md | 4 ++-- documentation/docs/quick_start.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/matchers/ktor.md b/doc/matchers/ktor.md index 50b3fa24bbd..74e03b4261b 100644 --- a/doc/matchers/ktor.md +++ b/doc/matchers/ktor.md @@ -12,7 +12,7 @@ The following matchers are used when testing via the ktor server testkit. | ---------- | --- | | `shouldHaveStatus(HttpStatusCode)` | Tests that the response had the given http status code | | `shouldHaveContent(content)` | Tests that the response has the given body | -| `shouldHaveContentType(ContentType) | Tests that the response has the given Content Type | +| `shouldHaveContentType(ContentType)` | Tests that the response has the given Content Type | | `shouldHaveHeader(name, value)` | Tests that the response included the given name=value header | | `shouldHaveCookie(name, value)` | Tests that the response included the given cookie | @@ -23,6 +23,6 @@ The following matchers can be used against responses from the ktor http client. | Matcher | Description | | ---------- | --- | | `shouldHaveStatus(HttpStatusCode)` | Tests that the response had the given http status code | -| `shouldHaveContentType(ContentType) | Tests that the response has the given Content Type | +| `shouldHaveContentType(ContentType)` | Tests that the response has the given Content Type | | `shouldHaveHeader(name, value)` | Tests that the response included the given name=value header | | `shouldHaveVersion(HttpProtocolVersion)` | Tests that the response used the given protocol version | diff --git a/documentation/docs/quick_start.mdx b/documentation/docs/quick_start.mdx index 65f952a2d93..328d7cc90ef 100644 --- a/documentation/docs/quick_start.mdx +++ b/documentation/docs/quick_start.mdx @@ -121,7 +121,7 @@ And then add the Kotest JUnit5 runner to your dependencies section. -:::info +:::info Currently, only JVM tests are officially supported in Kotest. Experimental support for instrumented and Robolectric tests is currently under work. The following steps enable Kotest to be used for unit and integration tests, where the Android framework is not needed or is mocked that usually reside in the @@ -178,7 +178,7 @@ For example, the JDBC matchers only work for JVM since JDBC is a Java library. Add the following dependency to your build: -``` +```groovy testImplementation 'io.kotest:kotest-assertions-core:$version' ```