Skip to content

Commit 932e232

Browse files
committed
Add code coverage badge, fix AnonymousTest for JS
1 parent dd70f19 commit 932e232

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# KPastebin [![Maven Central](https://img.shields.io/maven-central/v/net.pearx.kpastebin/kpastebin.svg?label=version&logo=kotlin&logoColor=white)](https://search.maven.org/search?q=g:%22net.pearx.kpastebin%22%20AND%20a:%22kpastebin%22) [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin)
22
[![License](https://img.shiel**ds.io/github/license/pearxteam/kpastebin.svg)](https://raw.githubusercontent.com/pearxteam/kpastebin/master/LICENSE.TXT)
33
[![Discord](https://img.shields.io/discord/136085738151346176.svg?logo=discord&logoColor=white)](https://discord.gg/q9cX9QE)
4+
45
![Test & Deploy | develop](https://github.com/pearxteam/kpastebin/workflows/Test%20&%20Deploy%20%7C%20develop/badge.svg?branch=develop)
56
![Test & Deploy | master](https://github.com/pearxteam/kpastebin/workflows/Test%20&%20Deploy%20%7C%20master/badge.svg?branch=master)
7+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=pearxteam_kpastebin&metric=coverage)](https://sonarcloud.io/dashboard?id=pearxteam_kpastebin)
8+
69

710
Multiplatform Kotlin library to interact with the pastebin.com API.
811

src/commonTest/kotlin/net/pearx/kpastebin/test/AnonymousTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import kotlin.test.assertFailsWith
2121
class AnonymousTest {
2222
@Test
2323
fun gettingNonExistingPasteFailsWith404() = runTest {
24-
assertFailsWith<PasteNotFoundException> {
24+
// todo https://youtrack.jetbrains.com/issue/KT-37645 https://youtrack.jetbrains.com/issue/KTOR-924
25+
assertFailsWith(PasteNotFoundException::class) {
2526
createClient("").getPaste("123")
2627
}
2728
}

0 commit comments

Comments
 (0)