Upgraded to Gradle 6.6 and Kotlin 1.4.0.
This commit is contained in:
parent
b12931c6ad
commit
720986b83f
15 changed files with 87 additions and 120 deletions
|
@ -126,7 +126,7 @@ class BitlyTest {
|
|||
@Test
|
||||
fun `bitlinks lastCallResponse`() {
|
||||
val bl = Bitlinks(bitly.accessToken)
|
||||
bl.shorten(longUrl, domain="bit.ly")
|
||||
bl.shorten(longUrl, domain = "bit.ly")
|
||||
assertEquals(true, bl.lastCallResponse.isSuccessful, "is successful")
|
||||
assertEquals(200, bl.lastCallResponse.resultCode, "resultCode == 200")
|
||||
assertTrue(bl.lastCallResponse.body.contains("\"link\":\"$shortUrl\""), "valid body")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue