Added bitlink create method.

This commit is contained in:
Erik C. Thauvin 2020-03-02 18:32:52 -08:00
parent 0aeb385238
commit 597b5516e1
4 changed files with 60 additions and 15 deletions

View file

@ -124,4 +124,9 @@ class BitlyTest {
fun `clicks summary`() {
assertNotEquals(Constants.EMPTY, bitly.bitlinks().clicks(shortUrl))
}
@Test
fun `create bitlink`() {
assertEquals(shortUrl, bitly.bitlinks().create(domain = "bit.ly", title = "Erik's Weblog", tags = arrayOf("erik", "thauvin", "blog", "weblog"), long_url = longUrl))
}
}