Added EMPTY constant.

This commit is contained in:
Erik C. Thauvin 2020-02-26 15:21:35 -08:00
parent d77b3cce72
commit abdae1cc77
6 changed files with 18 additions and 18 deletions

View file

@ -60,9 +60,9 @@ class BitlyTest {
fun `token should be specified`() {
val test = Bitly()
if (System.getenv("CI") == "true") {
test.accessToken = ""
test.accessToken = Constants.EMPTY
}
assertEquals("", test.bitlinks().shorten(blog))
assertEquals(Constants.EMPTY, test.bitlinks().shorten(blog))
}
@Test
@ -73,7 +73,7 @@ class BitlyTest {
@Test
fun `long url should be valid`() {
assertEquals("", bitly.bitlinks().shorten(""))
assertEquals(Constants.EMPTY, bitly.bitlinks().shorten(Constants.EMPTY))
}
@Test