Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit 77cf179

Browse files
author
Seraphim R.P
committed
Remove TempVersion from Context, make test utilize referenced version.
1 parent bc77d1e commit 77cf179

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

main_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestCommands_U(t *testing.T) {
3737

3838
func TestBibleGatewayVerses(t *testing.T) {
3939
inputToOutput := map[string]models.VerseResponse{
40-
"and so we have Psalm 3:1-": {
40+
"and so we have Psalm 3:1- RSV": {
4141
OK: true,
4242
Results: []*models.Verse{
4343
{
@@ -72,7 +72,6 @@ func TestBibleGatewayVerses(t *testing.T) {
7272
for input, output := range inputToOutput {
7373
input := map[string]string{
7474
"body": input,
75-
"ver": "RSV",
7675
"token": "meowmix",
7776
}
7877

models/context.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ type Context struct {
99
GuildPrefs GuildPreference
1010
Language Language
1111

12-
Token string `json:"token"`
13-
Body string `json:"body"`
14-
TempVersion string `json:"ver"`
15-
IsDM bool `json:"isDM"`
12+
Token string `json:"token"`
13+
Body string `json:"body"`
14+
IsDM bool `json:"isDM"`
1615

1716
UserID string `json:"userID"`
1817
ChannelID string `json:"channelID"`

0 commit comments

Comments
 (0)