Skip to content

Commit

Permalink
Extend Test Cases
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Oct 8, 2023
1 parent 968407f commit 3f77394
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/storage/ticker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ func TestTickerMastodonConnect(t *testing.T) {
assert.False(t, ticker.Mastodon.Connected())
}

func TestTickerTelegramConnected(t *testing.T) {
assert.False(t, ticker.Telegram.Connected())

ticker.Telegram.ChannelName = "ChannelName"

assert.True(t, ticker.Telegram.Connected())
}

func TestTickerReset(t *testing.T) {
ticker.Active = true
ticker.Description = "Description"
Expand Down

0 comments on commit 3f77394

Please sign in to comment.