Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Add unit test for ChannelData.URI() #43

Merged
merged 3 commits into from
Feb 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,16 @@ func TestMessageReceived(t *testing.T) {
})
})
}

func TestChannelData(t *testing.T) {
Convey("Given a ChannelData struct", t, func() {
Convey("Make sure ChannelData can give you the Channel URI", func() {
cd := ChannelData{
Protocol: "irc",
Server: "myserver",
Channel: "#mychan",
}
So(cd.URI(), ShouldEqual, "irc://myserver/#mychan")
})
})
}