Reformat FrameworkAdapter example code in comment

The example code shows up all on one line in the generated docs.

https://kotlinlang.org/api/latest/kotlin.test/kotlin.test/-framework-adapter/ shows

> suite('a suite', false, function() { suite('a subsuite', false, ...

Use a fenced code block with a language identifier.
This commit is contained in:
Mike Samuel
2020-04-29 00:36:46 -04:00
committed by GitHub
parent f4cea1b0cd
commit 580ffc1d99
@@ -11,6 +11,7 @@ package kotlin.test
* The tests structure is defined using internal functions suite and test, which delegate to corresponding functions of a [FrameworkAdapter]. * The tests structure is defined using internal functions suite and test, which delegate to corresponding functions of a [FrameworkAdapter].
* Sample test layout: * Sample test layout:
* *
* ```js
* suite('a suite', false, function() { * suite('a suite', false, function() {
* suite('a subsuite', false, function() { * suite('a subsuite', false, function() {
* test('a test', false, function() {...}); * test('a test', false, function() {...});
@@ -18,6 +19,7 @@ package kotlin.test
* }); * });
* suite('an ignored/pending test', true, function() {...}); * suite('an ignored/pending test', true, function() {...});
* }); * });
* ```
* *
*/ */
public external interface FrameworkAdapter { public external interface FrameworkAdapter {