Added EMPTY constant.
This commit is contained in:
parent
d77b3cce72
commit
abdae1cc77
6 changed files with 18 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue