[Gradle, JS] Fix of using format-util
^KT-42921 fixed
This commit is contained in:
committed by
TeamCityServer
parent
965426bbd9
commit
b2a2616c10
+2
-1
@@ -44,7 +44,8 @@ class KotlinMocha(@Transient override val compilation: KotlinJsCompilation, priv
|
|||||||
get() = setOf(
|
get() = setOf(
|
||||||
versions.kotlinJsTestRunner,
|
versions.kotlinJsTestRunner,
|
||||||
versions.mocha,
|
versions.mocha,
|
||||||
versions.sourceMapSupport
|
versions.sourceMapSupport,
|
||||||
|
versions.formatUtil
|
||||||
)
|
)
|
||||||
|
|
||||||
override fun getPath() = "$basePath:kotlinMocha"
|
override fun getPath() = "$basePath:kotlinMocha"
|
||||||
|
|||||||
@@ -56,5 +56,5 @@ export function formatMessage() {
|
|||||||
formattedArguments.push(tcEscape(param));
|
formattedArguments.push(tcEscape(param));
|
||||||
});
|
});
|
||||||
formattedArguments.unshift(tcMessage);
|
formattedArguments.unshift(tcMessage);
|
||||||
return format(formattedArguments);
|
return format(...formattedArguments);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user