From 580ffc1d9930bd50699031e6346fc484b29324a8 Mon Sep 17 00:00:00 2001 From: Mike Samuel Date: Wed, 29 Apr 2020 00:36:46 -0400 Subject: [PATCH] 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. --- .../js/src/main/kotlin/kotlin/test/FrameworkAdapter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/FrameworkAdapter.kt b/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/FrameworkAdapter.kt index eccc03fa651..6b5cbcaa3a4 100644 --- a/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/FrameworkAdapter.kt +++ b/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/FrameworkAdapter.kt @@ -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]. * Sample test layout: * + * ```js * suite('a suite', false, function() { * suite('a subsuite', false, function() { * test('a test', false, function() {...}); @@ -18,6 +19,7 @@ package kotlin.test * }); * suite('an ignored/pending test', true, function() {...}); * }); + * ``` * */ public external interface FrameworkAdapter {